summary refs log tree commit diff
path: root/pkgs/tools/security/opensc
diff options
context:
space:
mode:
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>2017-03-05 23:31:37 +0100
committerBenno Fünfstück <benno.fuenfstueck@gmail.com>2017-03-05 23:36:35 +0100
commitc0bfcdf3a6d2bdc97524274a83febef043749107 (patch)
tree598119ec6c679bf764630a914016d84791ad477a /pkgs/tools/security/opensc
parent2dfd8d952ed15e9c87d87003592227283ffdd3ca (diff)
downloadnixpkgs-c0bfcdf3a6d2bdc97524274a83febef043749107.tar
nixpkgs-c0bfcdf3a6d2bdc97524274a83febef043749107.tar.gz
nixpkgs-c0bfcdf3a6d2bdc97524274a83febef043749107.tar.bz2
nixpkgs-c0bfcdf3a6d2bdc97524274a83febef043749107.tar.lz
nixpkgs-c0bfcdf3a6d2bdc97524274a83febef043749107.tar.xz
nixpkgs-c0bfcdf3a6d2bdc97524274a83febef043749107.tar.zst
nixpkgs-c0bfcdf3a6d2bdc97524274a83febef043749107.zip
opensc: remove obsolete DESTDIR patch
This patch was actively causing harm, because it lead to a "double prefix"
issue where the etc files were installed into $out/$out/etc instead of just
$out/etc.
Diffstat (limited to 'pkgs/tools/security/opensc')
-rw-r--r--pkgs/tools/security/opensc/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/tools/security/opensc/default.nix b/pkgs/tools/security/opensc/default.nix
index 672b95dec45..302a5e251b0 100644
--- a/pkgs/tools/security/opensc/default.nix
+++ b/pkgs/tools/security/opensc/default.nix
@@ -14,10 +14,6 @@ stdenv.mkDerivation rec {
     sha256 = "16y3ryx606nry2li05hm88bllrragdj3sfl3yh7pf71777n4lsk4";
   };
 
-  postPatch = ''
-    sed -i 's,$(DESTDIR),$(out),g' etc/Makefile.am
-  '';
-
   buildInputs = [
     autoreconfHook pkgconfig zlib readline openssl pcsclite libassuan
     libXt libxslt libiconv docbook_xml_dtd_412
@@ -38,9 +34,11 @@ stdenv.mkDerivation rec {
   ];
 
   installFlags = [
-    "sysconfdir=\${out}/etc"
+    "sysconfdir=$(out)/etc"
   ];
 
+  
+
   meta = with stdenv.lib; {
     description = "Set of libraries and utilities to access smart cards";
     homepage = https://github.com/OpenSC/OpenSC/wiki;