diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2017-09-19 11:54:40 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-09-19 12:27:15 +0100 |
commit | 3170d8608db5ce30a7ea6a439bb99227b0779a5f (patch) | |
tree | 33f562e203bd3b9d8b696787b8c64df0004b9d27 /pkgs/development/libraries/gdbm | |
parent | 52d1f68005bcec196f4d7f7b419b119bdfdf7c03 (diff) |
gdbm: add symlinks for compatibility
some tools check this location to distinguish between gdbm and ndbm
Diffstat (limited to 'pkgs/development/libraries/gdbm')
-rw-r--r-- | pkgs/development/libraries/gdbm/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gdbm/default.nix b/pkgs/development/libraries/gdbm/default.nix index 86d9bd649881..c6313dec90ce 100644 --- a/pkgs/development/libraries/gdbm/default.nix +++ b/pkgs/development/libraries/gdbm/default.nix @@ -25,6 +25,17 @@ stdenv.mkDerivation rec { ''; configureFlags = [ "--enable-libgdbm-compat" ]; + postInstall = '' + # create symlinks for compatibility + install -dm755 $out/include/gdbm + ( + cd $out/include/gdbm + ln -s ../gdbm.h gdbm.h + ln -s ../ndbm.h ndbm.h + ln -s ../dbm.h dbm.h + ) + ''; + meta = with lib; { description = "GNU dbm key/value database library"; |