treewide: use ${stdenv.shell} instead of /bin/sh where possible
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user