treewide: use ${stdenv.shell} instead of /bin/sh where possible

This commit is contained in:
rnhmjoj
2019-01-16 20:37:15 +01:00
parent 3956a8421f
commit bcf54ce5bb
92 changed files with 156 additions and 120 deletions
+11 -3
View File
@@ -3,7 +3,8 @@
, gtk3, nssTools, pcsclite
, libxml2, libproxy
, openssl, curl
, makeWrapper }:
, makeWrapper
, substituteAll }:
stdenv.mkDerivation rec {
name = "eid-mw-${version}";
@@ -32,8 +33,15 @@ stdenv.mkDerivation rec {
configureFlags = [ "--enable-dialogs=yes" ];
postInstall = ''
install -D ${./eid-nssdb.in} $out/bin/eid-nssdb
postInstall =
let
eid-nssdb-in = substituteAll {
inherit (stdenv) shell;
src = ./eid-nssdb.in;
};
in
''
install -D ${eid-nssdb-in} $out/bin/eid-nssdb
substituteInPlace $out/bin/eid-nssdb \
--replace "modutil" "${nssTools}/bin/modutil"