mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 11:05:14 +00:00
simp_le: patch shebangs
This commit is contained in:
parent
e144fa07b9
commit
727c76765d
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user