mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
gflags: build on case-insensitive FSs, add meta
Darwin machines come with a case-insensitive filesystem by default. The gflags package's source contains a file 'BUILD' and the build process attempts to create a directory called 'build', which fails on case-insensitive filesystems. Add a prePatch hook to rename the BUILD file (which is for use with an unrelated build tool) to something that doesn't conflict with the 'build' directory. This hook allows this derivation to be built on case-insensitive filesystems. Add metadata to the derivation because previously it had none.
This commit is contained in:
parent
80e730c9a4
commit
66bbee3b81
@ -7,4 +7,13 @@ stdenv.mkDerivation
|
|||||||
sha256 = "03lxc2ah8i392kh1naq99iip34k4fpv22kwflyx3byd2ssycs9xf";
|
sha256 = "03lxc2ah8i392kh1naq99iip34k4fpv22kwflyx3byd2ssycs9xf";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
# for case-insensitive filesystems
|
||||||
|
prePatch = "mv BUILD BUILD.bazel";
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "C++ library that implements commandline flags processing";
|
||||||
|
homepage = "https://github.com/gflags/gflags";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user