icestorm: minor cleanup with pythonPkg.interpreter [NFC]

Suggested cleanup by @dotlambda. See:

  https://github.com/NixOS/nixpkgs/commit/18839e1cc1a0c2ee787a8990809141cf43e1848c#commitcomment-31917295

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp
2019-01-12 15:51:00 -06:00
parent 497e6f1705
commit 8b5e6b7711
+2 -2
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
'';