From adea61b01babca06cf769e8014c550edc6848bd5 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 13:26:29 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/default.nix | 7 +++++-- hosts/vidhar/borg/pyprctl-packages.nix | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 hosts/vidhar/borg/pyprctl-packages.nix (limited to 'hosts') diff --git a/hosts/vidhar/borg/default.nix b/hosts/vidhar/borg/default.nix index cae241d2..05cc74d5 100644 --- a/hosts/vidhar/borg/default.nix +++ b/hosts/vidhar/borg/default.nix @@ -42,7 +42,10 @@ let }; }; - copyBorg = pkgs.stdenv.mkDerivation rec { + copyBorg = pkgs.stdenv.mkDerivation let + packageOverrides = pkgs.callPackage ./pyprctl-packages.nix {}; + inpPython = pkgs.python39.override { inherit packageOverrides; }; + in rec { name = "copy"; src = ./copy.py; @@ -50,7 +53,7 @@ let buildInputs = with pkgs; [makeWrapper]; - python = pkgs.python39.withPackages (ps: with ps; [humanize tqdm dateutil xdg python-unshare pyprctl halo]); + python = inpPython.withPackages (ps: with ps; [humanize tqdm dateutil xdg python-unshare pyprctl halo]); buildPhase = '' substitute $src copy \ diff --git a/hosts/vidhar/borg/pyprctl-packages.nix b/hosts/vidhar/borg/pyprctl-packages.nix new file mode 100644 index 00000000..d3b4256a --- /dev/null +++ b/hosts/vidhar/borg/pyprctl-packages.nix @@ -0,0 +1,21 @@ +# Generated by pip2nix 0.8.0.dev1 +# See https://github.com/nix-community/pip2nix + +{ pkgs, fetchurl, fetchgit, fetchhg }: + +self: super: { + "pyprctl" = super.buildPythonPackage rec { + pname = "pyprctl"; + version = "0.1.3"; + src = fetchurl { + url = "https://files.pythonhosted.org/packages/bf/5e/62765de39bbce8111fb1f4453a4a804913bf49179fa265fb713ed66c9d15/pyprctl-0.1.3-py3-none-any.whl"; + sha256 = "1pgif990r92za5rx12mjnq5iiz72d455v0wrawzb73q79w8ya0k3"; + }; + format = "wheel"; + doCheck = false; + buildInputs = []; + checkInputs = []; + nativeBuildInputs = []; + propagatedBuildInputs = []; + }; +} -- cgit v1.2.3