simp_le: patch shebangs

This commit is contained in:
Robert Schütz 2018-03-21 10:14:52 +01:00
parent e144fa07b9
commit 727c76765d

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages }:
{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages, bash }:
pythonPackages.buildPythonApplication rec {
pname = "simp_le-client";
@ -9,6 +9,11 @@ pythonPackages.buildPythonApplication rec {
sha256 = "0nv9mm99rm8i9flgfgwvmajbsxb5rm162nfxlq3wk66bbbyr6y1i";
};
postPatch = ''
substituteInPlace simp_le.py \
--replace "/bin/sh" "${bash}/bin/sh"
'';
checkPhase = ''
$out/bin/simp_le --test
'';