lol

Merge pull request #16714 from vrthra/gnunet

gnunet: Fix build

authored by

James Cook and committed by
GitHub
96ec2b6c c6a641eb

+12 -16
+12 -16
pkgs/applications/networking/p2p/gnunet/default.nix
··· 20 20 # Brute force: since nix-worker chroots don't provide 21 21 # /etc/{resolv.conf,hosts}, replace all references to `localhost' 22 22 # by their IPv4 equivalent. 23 - for i in $(find . \( -name \*.c -or -name \*.conf \) \ 24 - -exec grep -l '\<localhost\>' {} \;) 25 - do 26 - echo "$i: substituting \`127.0.0.1' to \`localhost'..." 27 - sed -i "$i" -e's/\<localhost\>/127.0.0.1/g' 28 - done 23 + find . \( -name \*.c -or -name \*.conf \) | \ 24 + xargs sed -ie 's|\<localhost\>|127.0.0.1|g' 29 25 30 26 # Make sure the tests don't rely on `/tmp', for the sake of chroot 31 27 # builds. 32 - for i in $(find . \( -iname \*test\*.c -or -name \*.conf \) \ 33 - -exec grep -l /tmp {} \;) 34 - do 35 - echo "$i: replacing references to \`/tmp' by \`$TMPDIR'..." 36 - substituteInPlace "$i" --replace "/tmp" "$TMPDIR" 37 - done 28 + find . \( -iname \*test\*.c -or -name \*.conf \) | \ 29 + xargs sed -ie "s|/tmp|$TMPDIR|g" 38 30 39 31 # Ensure NSS installation works fine 40 32 configureFlags="$configureFlags --with-nssdir=$out/lib" 41 33 patchShebangs src/gns/nss/install-nss-plugin.sh 34 + 35 + sed -ie 's|@LDFLAGS@|@LDFLAGS@ $(Z_LIBS)|g' \ 36 + src/regex/Makefile.in \ 37 + src/fs/Makefile.in 42 38 ''; 43 39 44 40 doCheck = false; ··· 53 49 ''; 54 50 */ 55 51 56 - meta = { 52 + meta = with stdenv.lib; { 57 53 description = "GNU's decentralized anonymous and censorship-resistant P2P framework"; 58 54 59 55 longDescription = '' ··· 73 69 74 70 homepage = http://gnunet.org/; 75 71 76 - license = stdenv.lib.licenses.gpl2Plus; 72 + license = licenses.gpl2Plus; 77 73 78 - maintainers = with stdenv.lib.maintainers; [ viric ]; 79 - platforms = stdenv.lib.platforms.gnu; 74 + maintainers = with maintainers; [ viric vrthra ]; 75 + platforms = platforms.gnu; 80 76 }; 81 77 }