mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
Compare commits
7 commits
89f5196af7
...
c0d18af092
| Author | SHA1 | Date | |
|---|---|---|---|
| c0d18af092 | |||
| 8782f05477 | |||
| d2046634cc | |||
| 77cbb354f5 | |||
| e6b92df151 | |||
| 1ba9742e6d | |||
| 79182e4f6e |
7 changed files with 33 additions and 53 deletions
|
|
@ -3,17 +3,14 @@
|
|||
stdenvNoCC,
|
||||
lib,
|
||||
}:
|
||||
let
|
||||
rev = "9bb188e2701138e03f73bacebd6b19b181ca0012";
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "ai_blocklist";
|
||||
version = "unstable-" + lib.substring 0 8 rev;
|
||||
version = "unstable-" + lib.substring 0 8 finalAttrs.src.rev;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "laylavish";
|
||||
repo = "uBlockOrigin-HUGE-AI-Blocklist";
|
||||
inherit rev;
|
||||
rev = "9bb188e2701138e03f73bacebd6b19b181ca0012";
|
||||
hash = "sha256-p3wfR28DH6V8BHn9DT10d09Yq3mdbBecWwlR1CdDYUA=";
|
||||
};
|
||||
|
||||
|
|
@ -29,4 +26,4 @@ stdenvNoCC.mkDerivation {
|
|||
cat $out/share/hosts.txt |
|
||||
sed 's/^0.0.0.0 //' > $out/share/domains.txt
|
||||
'';
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -2,10 +2,9 @@
|
|||
lib,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
ocaml,
|
||||
ocamlPackages,
|
||||
}:
|
||||
ocamlPackages.buildDunePackage rec {
|
||||
ocamlPackages.buildDunePackage (finalAttrs: {
|
||||
pname = "baguette_sharp";
|
||||
version = "2.3.0";
|
||||
|
||||
|
|
@ -15,7 +14,7 @@ ocamlPackages.buildDunePackage rec {
|
|||
src = fetchFromGitHub {
|
||||
owner = "vanilla-extracts";
|
||||
repo = "ocaml-baguettesharp-interpreter";
|
||||
rev = "v${version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-GI60O6om71P3L+fGHGBCZ+U8vMlwPgYTWZCSCnEM0Wc=";
|
||||
};
|
||||
|
||||
|
|
@ -23,10 +22,9 @@ ocamlPackages.buildDunePackage rec {
|
|||
fmt
|
||||
linenoise
|
||||
];
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.13.1";
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "fix dune";
|
||||
name = "dune-fix";
|
||||
url = "https://github.com/vanilla-extracts/ocaml-baguettesharp-interpreter/commit/8809bc39a5e2cb02f757636f9939dc7818876779.patch";
|
||||
hash = "sha256-j0C2T3ZZ3K2Xvvl0qH5zl0znTkiUR8PO9FlqqPUX2aw=";
|
||||
})
|
||||
|
|
@ -36,5 +34,6 @@ ocamlPackages.buildDunePackage rec {
|
|||
homepage = "https://github.com/vanilla-extracts/ocaml-baguettesharp-interpreter";
|
||||
description = "OCaml Implementation of the (famous) Baguette# exotic language, used as TIPE for the 2022,2023 seasons concours";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
mainProgram = "baguette_sharp.repl";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
@ -3,17 +3,14 @@
|
|||
stdenvNoCC,
|
||||
lib,
|
||||
}:
|
||||
let
|
||||
rev = "cc19c050997d5f54014bb20c764b131e003dfb17";
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "hategroup_blocklist";
|
||||
version = "unstable-" + lib.substring 0 8 rev;
|
||||
version = "unstable-" + lib.substring 0 8 finalAttrs.src.rev;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "chigh";
|
||||
repo = "hategroup-dnsbl";
|
||||
inherit rev;
|
||||
rev = "cc19c050997d5f54014bb20c764b131e003dfb17";
|
||||
hash = "sha256-SZBrjIBUw687MdrbOV7WrP5IhAAtKvPL2GqdcICHNvQ=";
|
||||
};
|
||||
|
||||
|
|
@ -28,4 +25,4 @@ stdenvNoCC.mkDerivation {
|
|||
cat $out/share/domains.txt |
|
||||
sed 's/^\([^#].*\)$/0.0.0.0 \1/' > $out/share/hosts.txt
|
||||
'';
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -3,17 +3,14 @@
|
|||
stdenvNoCC,
|
||||
lib,
|
||||
}:
|
||||
let
|
||||
rev = "b344ab770e4c08d0bb13c38ea61979b282e24db7";
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "hrt-time";
|
||||
version = "unstable-" + lib.substring 0 8 rev;
|
||||
version = "unstable-" + lib.substring 0 8 finalAttrs.src.rev;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ariannelafraise";
|
||||
repo = "hrt-time";
|
||||
inherit rev;
|
||||
rev = "b344ab770e4c08d0bb13c38ea61979b282e24db7";
|
||||
hash = "sha256-+AhLkcCETVnF6S+ov1oKxhs3M9F6ghyyERoLN3aMMxw=";
|
||||
};
|
||||
|
||||
|
|
@ -31,4 +28,4 @@ stdenvNoCC.mkDerivation {
|
|||
];
|
||||
|
||||
meta.mainProgram = "hrt-time";
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,14 +1,10 @@
|
|||
{
|
||||
fetchFromGitLab,
|
||||
ocaml-ng,
|
||||
ocamlPackages ? ocaml-ng.ocamlPackages_5_1,
|
||||
ocamlPackages,
|
||||
}:
|
||||
let
|
||||
version = "v0.16.2";
|
||||
in
|
||||
ocamlPackages.buildDunePackage {
|
||||
ocamlPackages.buildDunePackage (finalAttrs: {
|
||||
pname = "necrolib";
|
||||
inherit version;
|
||||
version = "0.16.2";
|
||||
|
||||
minimalOCamlVersion = "5.1.1";
|
||||
|
||||
|
|
@ -16,8 +12,8 @@ ocamlPackages.buildDunePackage {
|
|||
domain = "gitlab.inria.fr";
|
||||
owner = "skeletons";
|
||||
repo = "necro";
|
||||
rev = version;
|
||||
hash = "sha256-KoSKJD5jy+GY5QKKMUTW5gc0V/5l/klHrJMdC8aPnj8=";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-u5evoyVW6RP7uwvdH7MK0cEbXt+GEAMw78MiOLlYTA0=";
|
||||
};
|
||||
|
||||
duneVersion = "3";
|
||||
|
|
@ -26,4 +22,4 @@ ocamlPackages.buildDunePackage {
|
|||
ocamlPackages.ocamlgraph
|
||||
ocamlPackages.dune-build-info
|
||||
];
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,20 +1,17 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitea,
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitea,
|
||||
stdenv,
|
||||
}:
|
||||
let
|
||||
rev = "64fbd20e6a888cc974cefbf56275c99333d8f6e9";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "po210";
|
||||
version = "unstable-" + lib.substring 0 8 rev;
|
||||
version = "unstable-" + lib.substring 0 8 finalAttrs.src.rev;
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "git.disroot.org";
|
||||
owner = "80486DX2-66";
|
||||
repo = "po210";
|
||||
inherit rev;
|
||||
rev = "64fbd20e6a888cc974cefbf56275c99333d8f6e9";
|
||||
hash = "sha256-ph55vv5jiR7OiC9qKwG6WFqI1cTwtAEHZnc2Wd6X134=";
|
||||
};
|
||||
|
||||
|
|
@ -23,4 +20,4 @@ stdenv.mkDerivation {
|
|||
'';
|
||||
|
||||
meta.mainProgram = "po210";
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -3,23 +3,20 @@
|
|||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
let
|
||||
rev = "c9d4b164ff5dc2567bb0de3876460e51da62ba94";
|
||||
in
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "typst-bot";
|
||||
version = lib.substring 0 8 rev;
|
||||
version = lib.substring 0 8 finalAttrs.src.rev;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mattfbacon";
|
||||
repo = "typst-bot";
|
||||
inherit rev;
|
||||
rev = "c9d4b164ff5dc2567bb0de3876460e51da62ba94";
|
||||
hash = "sha256-tB+zrE5p7zOloOgoP2fmFsajd4IBf94ET1v/0W3aNcM=";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
# Don't use the upstream way of embedding the git rev
|
||||
echo 'fn main() { println!("cargo:rustc-env=BUILD_SHA=${rev}"); }' > crates/bot/build.rs
|
||||
echo 'fn main() { println!("cargo:rustc-env=BUILD_SHA=${finalAttrs.src.rev}"); }' > crates/bot/build.rs
|
||||
|
||||
# Patch the command calling the worker by name.
|
||||
substituteInPlace crates/bot/src/worker.rs --replace-fail \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue