diff options
author | Dmitriy <43755002+psydvl@users.noreply.github.com> | 2022-02-15 16:02:28 +0300 |
---|---|---|
committer | Dmitriy <43755002+psydvl@users.noreply.github.com> | 2022-02-15 16:02:28 +0300 |
commit | 8144bd3050e1f16237834fcad9f5d4c4e9afcddf (patch) | |
tree | 6608408ad2144611a465e312f81a7270fdc1f371 /pkgs/applications/misc | |
parent | 966006a0ac2109f9fc68c47df277160974edeb80 (diff) |
Fix: provide right python version instead of patching source
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/wike/default.nix | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pkgs/applications/misc/wike/default.nix b/pkgs/applications/misc/wike/default.nix index 0193321ef4bec..c3e5a505722c4 100644 --- a/pkgs/applications/misc/wike/default.nix +++ b/pkgs/applications/misc/wike/default.nix @@ -7,14 +7,12 @@ , libhandy, webkitgtk, glib-networking , gnome, dconf }: -let - pythonEnv = python3.withPackages (p: with p; [ - pygobject3 - requests - ]); -in stdenv.mkDerivation rec { + +python3.pkgs.buildPythonApplication rec { pname = "wike"; version = "1.7.1"; + format = "other"; + strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943 src = fetchFromGitHub { owner = "hugolabe"; @@ -35,7 +33,6 @@ in stdenv.mkDerivation rec { buildInputs = [ glib - pythonEnv gtk3 libhandy webkitgtk @@ -44,10 +41,13 @@ in stdenv.mkDerivation rec { dconf ]; + propagatedBuildInputs = with python3.pkgs; [ + requests + pygobject3 + ]; + postPatch = '' patchShebangs build-aux/meson/postinstall.py - substituteInPlace src/wike.in --replace "@PYTHON@" "${pythonEnv}/bin/python" - substituteInPlace src/wike-sp.in --replace "@PYTHON@" "${pythonEnv}/bin/python" ''; meta = with lib; { |