goredo: init at 1.21.0

+96
+58
pkgs/development/tools/build-managers/goredo/default.nix
··· 1 + { buildGoModule 2 + , fetchurl 3 + , lib 4 + , zstd 5 + , sharness 6 + , python3 7 + , perl 8 + }: 9 + 10 + buildGoModule rec { 11 + pname = "goredo"; 12 + version = "1.21.0"; 13 + 14 + src = fetchurl { 15 + url = "http://www.goredo.cypherpunks.ru/download/${pname}-${version}.tar.zst"; 16 + hash = "sha256-h882pt+xZWlhFLQar1kfmSAzMscwMXAajT6ezZl9P8M="; 17 + }; 18 + 19 + patches = [ ./fix-tests.diff ]; 20 + 21 + nativeBuildInputs = [ zstd ]; 22 + 23 + checkInputs = lib.optionals doCheck [ python3 perl ]; 24 + 25 + SHARNESS_TEST_SRCDIR = sharness + "/share/sharness"; 26 + 27 + vendorSha256 = null; 28 + subPackages = [ "." ]; 29 + 30 + preBuild = "cd src"; 31 + 32 + postBuild = '' 33 + ( cd $GOPATH/bin; ./goredo -symlinks ) 34 + cd .. 35 + ''; 36 + 37 + doCheck = true; 38 + checkPhase = '' 39 + runHook preCheck 40 + export PATH=$GOPATH/bin:$PATH 41 + prove -f 42 + runHook postCheck 43 + ''; 44 + 45 + postInstall = '' 46 + mkdir -p "$out/share/info" 47 + cp goredo.info "$out/share/info" 48 + ''; 49 + 50 + outputs = [ "out" "info" ]; 51 + 52 + meta = with lib; { 53 + description = "djb's redo, a system for building files from source files. Written in Go"; 54 + homepage = "https://www.goredo.cypherpunks.ru"; 55 + license = licenses.gpl3; 56 + maintainers = [ maintainers.spacefrogg ]; 57 + }; 58 + }
+36
pkgs/development/tools/build-managers/goredo/fix-tests.diff
··· 1 + diff -ur goredo-1.4.1/t/apenwarr/105-sympath/all.do goredo-1.4.1.new/t/apenwarr/105-sympath/all.do 2 + --- goredo-1.4.1/t/apenwarr/105-sympath/all.do 2021-04-29 14:03:11.000000000 +0200 3 + +++ goredo-1.4.1.new/t/apenwarr/105-sympath/all.do 2021-05-10 15:04:46.912799930 +0200 4 + @@ -11,12 +11,13 @@ 5 + ( 6 + cd y/x/x/x/x/x 7 + IFS=$(printf '\n') 8 + + _wd=$(env pwd) 9 + redo-ifchange static x/x/x/static $PWD/static \ 10 + - $(/bin/pwd)/static /etc/passwd 11 + + $_wd/static /etc/passwd 12 + # goredo: that symlink path is not resolving even at OS level 13 + # redo-ifchange $PWD/../static 2>/dev/null && exit 35 14 + redo-ifchange 1.dyn x/x/x/2.dyn $PWD/3.dyn \ 15 + - $PWD/../4.dyn $(/bin/pwd)/5.dyn 16 + + $PWD/../4.dyn $_wd/5.dyn 17 + ) 18 + [ -e y/1.dyn ] || exit $((iter + 1)) 19 + [ -e y/2.dyn ] || exit $((iter + 2)) 20 + diff -ur goredo-1.4.1/t/apenwarr/clean.do goredo-1.4.1.new/t/apenwarr/clean.do 21 + --- goredo-1.4.1/t/apenwarr/clean.do 2021-04-29 14:03:11.000000000 +0200 22 + +++ goredo-1.4.1.new/t/apenwarr/clean.do 2021-05-10 15:06:07.099591609 +0200 23 + @@ -1,3 +1,3 @@ 24 + -/bin/ls [0-9s][0-9][0-9]*/clean.do | 25 + +env ls [0-9s][0-9][0-9]*/clean.do | 26 + sed 's/\.do$//' | 27 + xargs redo 28 + diff -ur goredo-1.4.1/t/redo-sh.tests/clean.do goredo-1.4.1.new/t/redo-sh.tests/clean.do 29 + --- goredo-1.4.1/t/redo-sh.tests/clean.do 2021-04-29 14:03:11.000000000 +0200 30 + +++ goredo-1.4.1.new/t/redo-sh.tests/clean.do 2021-05-10 15:02:41.607562802 +0200 31 + @@ -1,4 +1,4 @@ 32 + for f in * ; do 33 + [ -d $f ] || continue 34 + - find $f ! -name test -delete 35 + + find $f ! -name test -delete || true 36 + done
+2
pkgs/top-level/all-packages.nix
··· 14376 14376 14377 14377 gocd-server = callPackage ../development/tools/continuous-integration/gocd-server { }; 14378 14378 14379 + goredo = callPackage ../development/tools/build-managers/goredo { }; 14380 + 14379 14381 gotify-server = callPackage ../servers/gotify { }; 14380 14382 14381 14383 gotty = callPackage ../servers/gotty { };