diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-05-31 12:13:35 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-05-31 12:36:44 -0400 |
commit | fd874b74560d5811660b492c38f0a690468d6bef (patch) | |
tree | 914cd3246ea2031bcb0869e23d3b5fb6d43a8c68 /pkgs/os-specific/bsd/netbsd/default.nix | |
parent | 050557ef8ac21f0458f23a902f0f0229069e937b (diff) | |
download | nixlib-fd874b74560d5811660b492c38f0a690468d6bef.tar nixlib-fd874b74560d5811660b492c38f0a690468d6bef.tar.gz nixlib-fd874b74560d5811660b492c38f0a690468d6bef.tar.bz2 nixlib-fd874b74560d5811660b492c38f0a690468d6bef.tar.lz nixlib-fd874b74560d5811660b492c38f0a690468d6bef.tar.xz nixlib-fd874b74560d5811660b492c38f0a690468d6bef.tar.zst nixlib-fd874b74560d5811660b492c38f0a690468d6bef.zip |
netbsd: allow replacing nbcompat with libbsd
Diffstat (limited to 'pkgs/os-specific/bsd/netbsd/default.nix')
-rw-r--r-- | pkgs/os-specific/bsd/netbsd/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/os-specific/bsd/netbsd/default.nix b/pkgs/os-specific/bsd/netbsd/default.nix index 84d6926c50c7..eb305d5b3db7 100644 --- a/pkgs/os-specific/bsd/netbsd/default.nix +++ b/pkgs/os-specific/bsd/netbsd/default.nix @@ -162,7 +162,7 @@ let extraPaths = [ make.src ] ++ make.extraPaths; }; - compat = netBSDDerivation { + compat = netBSDDerivation rec { path = "tools/compat"; sha256 = "17phkfafybxwhzng44k5bhmag6i55br53ky1nwcmw583kg2fa86z"; version = "7.1.2"; @@ -182,6 +182,8 @@ let installFlags = []; RENAME = "-D"; + patches = [ ./compat.patch ]; + postInstall = '' mv $out/include/compat/* $out/include rmdir $out/include/compat @@ -204,6 +206,11 @@ let install -D $NETBSDSRCDIR/include/utmpx.h $out/include/utmpx.h install -D $NETBSDSRCDIR/include/tzfile.h $out/include/tzfile.h + mkdir -p $out/lib/pkgconfig + substitute ${./libbsd-overlay.pc} $out/lib/pkgconfig/libbsd-overlay.pc \ + --subst-var-by out $out \ + --subst-var-by version ${version} + # Remove lingering /usr references if [ -d $out/usr ]; then cd $out/usr |