diff options
author | Robert Schütz <nix@dotlambda.de> | 2022-01-11 23:40:02 +0000 |
---|---|---|
committer | Robert Schütz <nix@dotlambda.de> | 2022-01-16 18:39:59 +0000 |
commit | d5cceedbd13767b1770c0baac001167f3bf6d5ae (patch) | |
tree | efde5320c59f39bc8924eb0e7b2dfcaebe52388e /pkgs/tools/networking/philter | |
parent | 9356c3472c3c0a31fb5d6b9640ef7c958f76795c (diff) |
python,pythonPackages: make aliases
Since aliases are disallowed in nixpkgs, this makes usage of Python 2 which is EOL more explicit.
Diffstat (limited to 'pkgs/tools/networking/philter')
-rw-r--r-- | pkgs/tools/networking/philter/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/networking/philter/default.nix b/pkgs/tools/networking/philter/default.nix index 60bd2f8cc7e8c..dc447f3a86b90 100644 --- a/pkgs/tools/networking/philter/default.nix +++ b/pkgs/tools/networking/philter/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, python }: +{ lib, stdenv, fetchurl, python2 }: stdenv.mkDerivation rec { pname = "philter"; @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { installPhase = '' mkdir -p "$out"/{bin,share/philter} cp .philterrc "$out"/share/philter/philterrc - sed -i 's@/usr/local/bin@${python}/bin@' src/philter.py + sed -i 's@/usr/local/bin@${python2}/bin@' src/philter.py cp src/philter.py "$out"/bin/philter chmod +x "$out"/bin/philter ''; |