lol

goredo: 1.21.0 -> 1.30.0

authored by

spacefrogg and committed by
Michael Raitza
f7191497 4a1c1279

+31 -43
+9 -7
pkgs/development/libraries/sharness/default.nix
··· 6 6 , perlPackages 7 7 , sharnessExtensions ? {} }: 8 8 9 - stdenv.mkDerivation rec { 9 + stdenv.mkDerivation (finalAttrs: { 10 10 pname = "sharness"; 11 - version = "1.1.0-dev"; 11 + version = "1.2.0"; 12 12 13 13 src = fetchFromGitHub { 14 - owner = "chriscool"; 15 - repo = pname; 16 - rev = "3f238a740156dd2082f4bd60ced205e05894d367"; # 2020-12-09 17 - sha256 = "FCYskpIqkrpNaWCi2LkhEkiow4/rXLe+lfEWNUthLUg="; 14 + owner = "felipec"; 15 + repo = "sharness"; 16 + rev = "v${finalAttrs.version}"; 17 + hash = "sha256-C0HVWgTm9iXDSFyXcUVRfT0ip31YGaaZ6ZvxggK/x7o="; 18 18 }; 19 19 20 20 # Used for testing ··· 41 41 42 42 doCheck = true; 43 43 44 + passthru.SHARNESS_TEST_SRCDIR = finalAttrs.finalPackage + "/share/sharness"; 45 + 44 46 meta = with lib; { 45 47 description = "Portable shell library to write, run and analyze automated tests adhering to Test Anything Protocol (TAP)"; 46 48 homepage = "https://github.com/chriscool/sharness"; ··· 48 50 maintainers = [ maintainers.spacefrogg ]; 49 51 platforms = platforms.unix; 50 52 }; 51 - } 53 + })
+7 -6
pkgs/development/tools/build-managers/goredo/default.nix
··· 9 9 10 10 buildGoModule rec { 11 11 pname = "goredo"; 12 - version = "1.21.0"; 12 + version = "1.30.0"; 13 13 14 14 src = fetchurl { 15 15 url = "http://www.goredo.cypherpunks.ru/download/${pname}-${version}.tar.zst"; 16 - hash = "sha256-h882pt+xZWlhFLQar1kfmSAzMscwMXAajT6ezZl9P8M="; 16 + hash = "sha256-glsg2q8jFd4z6CuKzlZ3afJx/S7Aw6LCxFAS/uHLlUg="; 17 17 }; 18 18 19 19 patches = [ ./fix-tests.diff ]; ··· 22 22 23 23 nativeCheckInputs = lib.optionals doCheck [ python3 perl ]; 24 24 25 - SHARNESS_TEST_SRCDIR = sharness + "/share/sharness"; 25 + inherit (sharness) SHARNESS_TEST_SRCDIR; 26 26 27 27 vendorSha256 = null; 28 + 29 + modRoot = "./src"; 28 30 subPackages = [ "." ]; 29 - 30 - preBuild = "cd src"; 31 31 32 32 postBuild = '' 33 33 ( cd $GOPATH/bin; ./goredo -symlinks ) ··· 38 38 checkPhase = '' 39 39 runHook preCheck 40 40 export PATH=$GOPATH/bin:$PATH 41 - prove -f 41 + (cd t; prove -f .) 42 42 runHook postCheck 43 43 ''; 44 44 ··· 50 50 outputs = [ "out" "info" ]; 51 51 52 52 meta = with lib; { 53 + outputsToInstall = [ "out" ]; 53 54 description = "djb's redo, a system for building files from source files. Written in Go"; 54 55 homepage = "https://www.goredo.cypherpunks.ru"; 55 56 license = licenses.gpl3;
+15 -30
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 1 + diff '--color=auto' -ru goredo-1.30.0/t/goredo-double-consideration.t goredo-1.30.0.new/t/goredo-double-consideration.t 2 + --- goredo-1.30.0/t/goredo-double-consideration.t 2023-01-18 13:16:01.000000000 +0100 3 + +++ goredo-1.30.0.new/t/goredo-double-consideration.t 2023-03-11 16:15:19.434788789 +0100 4 + @@ -17,7 +17,7 @@ 5 + redo-stamp <"\$3" 6 + EOF 7 + cat > version.do <<EOF 8 + -git rev-parse --short HEAD > "\$3" 9 + +echo 012345 > "\$3" 10 + redo-always 11 + redo-stamp <"\$3" 12 + EOF 13 + diff '--color=auto' -ru goredo-1.30.0/t/redo-sh.tests/clean.do goredo-1.30.0.new/t/redo-sh.tests/clean.do 14 + --- goredo-1.30.0/t/redo-sh.tests/clean.do 2023-01-18 13:16:01.000000000 +0100 15 + +++ goredo-1.30.0.new/t/redo-sh.tests/clean.do 2023-03-11 16:09:47.304372011 +0100 31 16 @@ -1,4 +1,4 @@ 32 17 for f in * ; do 33 18 [ -d $f ] || continue