1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 00:22:13 +00:00

icestorm: minor cleanup with pythonPkg.interpreter [NFC]

Suggested cleanup by @dotlambda. See:

  18839e1cc1 (commitcomment-31917295)

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2019-01-12 15:29:35 -06:00
parent 497e6f1705
commit 8b5e6b7711

View file

@ -6,7 +6,7 @@
let
pypyCompatible = stdenv.isx86_64; /* pypy3 seems broken on i686 */
pythonPkg = if pypyCompatible then pypy3 else python3;
pythonInterp = if pypyCompatible then "pypy3" else "python3";
pythonInterp = pythonPkg.interpreter;
in
stdenv.mkDerivation rec {
@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
for x in $(find . -type f -iname '*.py'); do
substituteInPlace "$x" \
--replace '/usr/bin/env python3' '${pythonPkg}/bin/${pythonInterp}'
--replace '/usr/bin/env python3' '${pythonInterp}'
done
'';