Merge pull request #53377 from marsam/update-bfs

bfs: 1.2.4 -> 1.3.1
This commit is contained in:
markuskowa 2019-01-06 00:42:17 +01:00 committed by GitHub
commit bdbf3f964f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,23 +1,17 @@
{ stdenv, fetchFromGitHub, bash }: { stdenv, fetchFromGitHub, libcap, acl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "bfs-${version}"; name = "bfs-${version}";
version = "1.2.4"; version = "1.3.1";
src = fetchFromGitHub { src = fetchFromGitHub {
repo = "bfs"; repo = "bfs";
owner = "tavianator"; owner = "tavianator";
rev = version; rev = version;
sha256 = "0nxx2njjp04ik6msfmf07hprw0j88wg04m0q1sf17mhkliw2d78s"; sha256 = "0gv9hrcsz7miv40v6wmkmb1a58ji5d1dlgwq6gwczd8rzlmhddmc";
}; };
postPatch = '' buildInputs = stdenv.lib.optionals stdenv.isLinux [ libcap acl ];
# Patch tests (both shebangs and usage in scripts)
for f in $(find -type f -name '*.sh'); do
substituteInPlace $f --replace "/bin/bash" "${bash}/bin/bash"
done
'';
doCheck = true;
makeFlags = [ "PREFIX=$(out)" ]; makeFlags = [ "PREFIX=$(out)" ];
buildFlags = [ "release" ]; # "release" enables compiler optimizations buildFlags = [ "release" ]; # "release" enables compiler optimizations
@ -30,7 +24,7 @@ stdenv.mkDerivation rec {
''; '';
homepage = https://github.com/tavianator/bfs; homepage = https://github.com/tavianator/bfs;
license = licenses.bsd0; license = licenses.bsd0;
platforms = platforms.linux; platforms = platforms.unix;
maintainers = with maintainers; [ yesbox ]; maintainers = with maintainers; [ yesbox ];
}; };
} }