diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libexecinfo')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libexecinfo/default.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libexecinfo/default.nix b/nixpkgs/pkgs/development/libraries/libexecinfo/default.nix index feee754590b6..f3f89209707a 100644 --- a/nixpkgs/pkgs/development/libraries/libexecinfo/default.nix +++ b/nixpkgs/pkgs/development/libraries/libexecinfo/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, fetchpatch +{ lib, stdenv, fetchurl, fetchpatch , enableStatic ? true , enableShared ? !stdenv.hostPlatform.isStatic }: @@ -33,21 +33,21 @@ stdenv.mkDerivation rec { makeFlags = [ "CC:=$(CC)" "AR:=$(AR)" ]; buildFlags = - stdenv.lib.optional enableStatic "static" - ++ stdenv.lib.optional enableShared "dynamic"; + lib.optional enableStatic "static" + ++ lib.optional enableShared "dynamic"; patchFlags = [ "-p0" ]; installPhase = '' install -Dm644 execinfo.h stacktraverse.h -t $out/include - '' + stdenv.lib.optionalString enableShared '' + '' + lib.optionalString enableShared '' install -Dm755 libexecinfo.so.1 -t $out/lib ln -s $out/lib/libexecinfo.so{.1,} - '' + stdenv.lib.optionalString enableStatic '' + '' + lib.optionalString enableStatic '' install -Dm755 libexecinfo.a -t $out/lib ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Quick-n-dirty BSD licensed clone of the GNU libc backtrace facility"; license = licenses.bsd2; homepage = "https://www.freshports.org/devel/libexecinfo"; |