Compare commits

...

7 commits

7 changed files with 49 additions and 43 deletions

View file

@ -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
'';
}
})

View file

@ -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";
};
}
})

View file

@ -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
'';
}
})

View file

@ -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";
}
})

View file

@ -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
];
}
})

View file

@ -0,0 +1,23 @@
{
lib,
fetchFromGitea,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "po210";
version = "unstable-" + lib.substring 0 8 finalAttrs.src.rev;
src = fetchFromGitea {
domain = "git.disroot.org";
owner = "80486DX2-66";
repo = "po210";
rev = "64fbd20e6a888cc974cefbf56275c99333d8f6e9";
hash = "sha256-ph55vv5jiR7OiC9qKwG6WFqI1cTwtAEHZnc2Wd6X134=";
};
installPhase = ''
install -D ./bin/po210 $out/bin/po210
'';
meta.mainProgram = "po210";
})

View file

@ -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 \