Compare commits

..

7 commits

7 changed files with 33 additions and 53 deletions

View file

@ -3,17 +3,14 @@
stdenvNoCC, stdenvNoCC,
lib, lib,
}: }:
let stdenvNoCC.mkDerivation (finalAttrs: {
rev = "9bb188e2701138e03f73bacebd6b19b181ca0012";
in
stdenvNoCC.mkDerivation {
pname = "ai_blocklist"; pname = "ai_blocklist";
version = "unstable-" + lib.substring 0 8 rev; version = "unstable-" + lib.substring 0 8 finalAttrs.src.rev;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "laylavish"; owner = "laylavish";
repo = "uBlockOrigin-HUGE-AI-Blocklist"; repo = "uBlockOrigin-HUGE-AI-Blocklist";
inherit rev; rev = "9bb188e2701138e03f73bacebd6b19b181ca0012";
hash = "sha256-p3wfR28DH6V8BHn9DT10d09Yq3mdbBecWwlR1CdDYUA="; hash = "sha256-p3wfR28DH6V8BHn9DT10d09Yq3mdbBecWwlR1CdDYUA=";
}; };
@ -29,4 +26,4 @@ stdenvNoCC.mkDerivation {
cat $out/share/hosts.txt | cat $out/share/hosts.txt |
sed 's/^0.0.0.0 //' > $out/share/domains.txt sed 's/^0.0.0.0 //' > $out/share/domains.txt
''; '';
} })

View file

@ -2,10 +2,9 @@
lib, lib,
fetchFromGitHub, fetchFromGitHub,
fetchpatch, fetchpatch,
ocaml,
ocamlPackages, ocamlPackages,
}: }:
ocamlPackages.buildDunePackage rec { ocamlPackages.buildDunePackage (finalAttrs: {
pname = "baguette_sharp"; pname = "baguette_sharp";
version = "2.3.0"; version = "2.3.0";
@ -15,7 +14,7 @@ ocamlPackages.buildDunePackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "vanilla-extracts"; owner = "vanilla-extracts";
repo = "ocaml-baguettesharp-interpreter"; repo = "ocaml-baguettesharp-interpreter";
rev = "v${version}"; rev = "v${finalAttrs.version}";
hash = "sha256-GI60O6om71P3L+fGHGBCZ+U8vMlwPgYTWZCSCnEM0Wc="; hash = "sha256-GI60O6om71P3L+fGHGBCZ+U8vMlwPgYTWZCSCnEM0Wc=";
}; };
@ -23,10 +22,9 @@ ocamlPackages.buildDunePackage rec {
fmt fmt
linenoise linenoise
]; ];
doCheck = lib.versionAtLeast ocaml.version "4.13.1";
patches = [ patches = [
(fetchpatch { (fetchpatch {
name = "fix dune"; name = "dune-fix";
url = "https://github.com/vanilla-extracts/ocaml-baguettesharp-interpreter/commit/8809bc39a5e2cb02f757636f9939dc7818876779.patch"; url = "https://github.com/vanilla-extracts/ocaml-baguettesharp-interpreter/commit/8809bc39a5e2cb02f757636f9939dc7818876779.patch";
hash = "sha256-j0C2T3ZZ3K2Xvvl0qH5zl0znTkiUR8PO9FlqqPUX2aw="; hash = "sha256-j0C2T3ZZ3K2Xvvl0qH5zl0znTkiUR8PO9FlqqPUX2aw=";
}) })
@ -36,5 +34,6 @@ ocamlPackages.buildDunePackage rec {
homepage = "https://github.com/vanilla-extracts/ocaml-baguettesharp-interpreter"; 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"; description = "OCaml Implementation of the (famous) Baguette# exotic language, used as TIPE for the 2022,2023 seasons concours";
license = lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
mainProgram = "baguette_sharp.repl";
}; };
} })

View file

@ -3,17 +3,14 @@
stdenvNoCC, stdenvNoCC,
lib, lib,
}: }:
let stdenvNoCC.mkDerivation (finalAttrs: {
rev = "cc19c050997d5f54014bb20c764b131e003dfb17";
in
stdenvNoCC.mkDerivation {
pname = "hategroup_blocklist"; pname = "hategroup_blocklist";
version = "unstable-" + lib.substring 0 8 rev; version = "unstable-" + lib.substring 0 8 finalAttrs.src.rev;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "chigh"; owner = "chigh";
repo = "hategroup-dnsbl"; repo = "hategroup-dnsbl";
inherit rev; rev = "cc19c050997d5f54014bb20c764b131e003dfb17";
hash = "sha256-SZBrjIBUw687MdrbOV7WrP5IhAAtKvPL2GqdcICHNvQ="; hash = "sha256-SZBrjIBUw687MdrbOV7WrP5IhAAtKvPL2GqdcICHNvQ=";
}; };
@ -28,4 +25,4 @@ stdenvNoCC.mkDerivation {
cat $out/share/domains.txt | cat $out/share/domains.txt |
sed 's/^\([^#].*\)$/0.0.0.0 \1/' > $out/share/hosts.txt sed 's/^\([^#].*\)$/0.0.0.0 \1/' > $out/share/hosts.txt
''; '';
} })

View file

@ -3,17 +3,14 @@
stdenvNoCC, stdenvNoCC,
lib, lib,
}: }:
let stdenvNoCC.mkDerivation (finalAttrs: {
rev = "b344ab770e4c08d0bb13c38ea61979b282e24db7";
in
stdenvNoCC.mkDerivation {
pname = "hrt-time"; pname = "hrt-time";
version = "unstable-" + lib.substring 0 8 rev; version = "unstable-" + lib.substring 0 8 finalAttrs.src.rev;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ariannelafraise"; owner = "ariannelafraise";
repo = "hrt-time"; repo = "hrt-time";
inherit rev; rev = "b344ab770e4c08d0bb13c38ea61979b282e24db7";
hash = "sha256-+AhLkcCETVnF6S+ov1oKxhs3M9F6ghyyERoLN3aMMxw="; hash = "sha256-+AhLkcCETVnF6S+ov1oKxhs3M9F6ghyyERoLN3aMMxw=";
}; };
@ -31,4 +28,4 @@ stdenvNoCC.mkDerivation {
]; ];
meta.mainProgram = "hrt-time"; meta.mainProgram = "hrt-time";
} })

View file

@ -1,14 +1,10 @@
{ {
fetchFromGitLab, fetchFromGitLab,
ocaml-ng, ocamlPackages,
ocamlPackages ? ocaml-ng.ocamlPackages_5_1,
}: }:
let ocamlPackages.buildDunePackage (finalAttrs: {
version = "v0.16.2";
in
ocamlPackages.buildDunePackage {
pname = "necrolib"; pname = "necrolib";
inherit version; version = "0.16.2";
minimalOCamlVersion = "5.1.1"; minimalOCamlVersion = "5.1.1";
@ -16,8 +12,8 @@ ocamlPackages.buildDunePackage {
domain = "gitlab.inria.fr"; domain = "gitlab.inria.fr";
owner = "skeletons"; owner = "skeletons";
repo = "necro"; repo = "necro";
rev = version; rev = "v${finalAttrs.version}";
hash = "sha256-KoSKJD5jy+GY5QKKMUTW5gc0V/5l/klHrJMdC8aPnj8="; hash = "sha256-u5evoyVW6RP7uwvdH7MK0cEbXt+GEAMw78MiOLlYTA0=";
}; };
duneVersion = "3"; duneVersion = "3";
@ -26,4 +22,4 @@ ocamlPackages.buildDunePackage {
ocamlPackages.ocamlgraph ocamlPackages.ocamlgraph
ocamlPackages.dune-build-info ocamlPackages.dune-build-info
]; ];
} })

View file

@ -3,18 +3,15 @@ lib,
fetchFromGitea, fetchFromGitea,
stdenv, stdenv,
}: }:
let stdenv.mkDerivation (finalAttrs: {
rev = "64fbd20e6a888cc974cefbf56275c99333d8f6e9";
in
stdenv.mkDerivation {
pname = "po210"; pname = "po210";
version = "unstable-" + lib.substring 0 8 rev; version = "unstable-" + lib.substring 0 8 finalAttrs.src.rev;
src = fetchFromGitea { src = fetchFromGitea {
domain = "git.disroot.org"; domain = "git.disroot.org";
owner = "80486DX2-66"; owner = "80486DX2-66";
repo = "po210"; repo = "po210";
inherit rev; rev = "64fbd20e6a888cc974cefbf56275c99333d8f6e9";
hash = "sha256-ph55vv5jiR7OiC9qKwG6WFqI1cTwtAEHZnc2Wd6X134="; hash = "sha256-ph55vv5jiR7OiC9qKwG6WFqI1cTwtAEHZnc2Wd6X134=";
}; };
@ -23,4 +20,4 @@ stdenv.mkDerivation {
''; '';
meta.mainProgram = "po210"; meta.mainProgram = "po210";
} })

View file

@ -3,23 +3,20 @@
rustPlatform, rustPlatform,
fetchFromGitHub, fetchFromGitHub,
}: }:
let
rev = "c9d4b164ff5dc2567bb0de3876460e51da62ba94";
in
rustPlatform.buildRustPackage (finalAttrs: { rustPlatform.buildRustPackage (finalAttrs: {
pname = "typst-bot"; pname = "typst-bot";
version = lib.substring 0 8 rev; version = lib.substring 0 8 finalAttrs.src.rev;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mattfbacon"; owner = "mattfbacon";
repo = "typst-bot"; repo = "typst-bot";
inherit rev; rev = "c9d4b164ff5dc2567bb0de3876460e51da62ba94";
hash = "sha256-tB+zrE5p7zOloOgoP2fmFsajd4IBf94ET1v/0W3aNcM="; hash = "sha256-tB+zrE5p7zOloOgoP2fmFsajd4IBf94ET1v/0W3aNcM=";
}; };
preBuild = '' preBuild = ''
# Don't use the upstream way of embedding the git rev # 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. # Patch the command calling the worker by name.
substituteInPlace crates/bot/src/worker.rs --replace-fail \ substituteInPlace crates/bot/src/worker.rs --replace-fail \