diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 13:26:29 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 13:26:29 +0100 |
commit | adea61b01babca06cf769e8014c550edc6848bd5 (patch) | |
tree | e5dabc986cb1121a5510743b93ec15efc29b2b50 /hosts/vidhar/borg | |
parent | 93db18285e73a4b9eab9a97097a9aa7e29d4afe8 (diff) | |
download | nixos-adea61b01babca06cf769e8014c550edc6848bd5.tar nixos-adea61b01babca06cf769e8014c550edc6848bd5.tar.gz nixos-adea61b01babca06cf769e8014c550edc6848bd5.tar.bz2 nixos-adea61b01babca06cf769e8014c550edc6848bd5.tar.xz nixos-adea61b01babca06cf769e8014c550edc6848bd5.zip |
vidhar: ...
Diffstat (limited to 'hosts/vidhar/borg')
-rw-r--r-- | hosts/vidhar/borg/default.nix | 7 | ||||
-rw-r--r-- | hosts/vidhar/borg/pyprctl-packages.nix | 21 |
2 files changed, 26 insertions, 2 deletions
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 | |||
42 | }; | 42 | }; |
43 | }; | 43 | }; |
44 | 44 | ||
45 | copyBorg = pkgs.stdenv.mkDerivation rec { | 45 | copyBorg = pkgs.stdenv.mkDerivation let |
46 | packageOverrides = pkgs.callPackage ./pyprctl-packages.nix {}; | ||
47 | inpPython = pkgs.python39.override { inherit packageOverrides; }; | ||
48 | in rec { | ||
46 | name = "copy"; | 49 | name = "copy"; |
47 | src = ./copy.py; | 50 | src = ./copy.py; |
48 | 51 | ||
@@ -50,7 +53,7 @@ let | |||
50 | 53 | ||
51 | buildInputs = with pkgs; [makeWrapper]; | 54 | buildInputs = with pkgs; [makeWrapper]; |
52 | 55 | ||
53 | python = pkgs.python39.withPackages (ps: with ps; [humanize tqdm dateutil xdg python-unshare pyprctl halo]); | 56 | python = inpPython.withPackages (ps: with ps; [humanize tqdm dateutil xdg python-unshare pyprctl halo]); |
54 | 57 | ||
55 | buildPhase = '' | 58 | buildPhase = '' |
56 | substitute $src copy \ | 59 | 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 @@ | |||
1 | # Generated by pip2nix 0.8.0.dev1 | ||
2 | # See https://github.com/nix-community/pip2nix | ||
3 | |||
4 | { pkgs, fetchurl, fetchgit, fetchhg }: | ||
5 | |||
6 | self: super: { | ||
7 | "pyprctl" = super.buildPythonPackage rec { | ||
8 | pname = "pyprctl"; | ||
9 | version = "0.1.3"; | ||
10 | src = fetchurl { | ||
11 | url = "https://files.pythonhosted.org/packages/bf/5e/62765de39bbce8111fb1f4453a4a804913bf49179fa265fb713ed66c9d15/pyprctl-0.1.3-py3-none-any.whl"; | ||
12 | sha256 = "1pgif990r92za5rx12mjnq5iiz72d455v0wrawzb73q79w8ya0k3"; | ||
13 | }; | ||
14 | format = "wheel"; | ||
15 | doCheck = false; | ||
16 | buildInputs = []; | ||
17 | checkInputs = []; | ||
18 | nativeBuildInputs = []; | ||
19 | propagatedBuildInputs = []; | ||
20 | }; | ||
21 | } | ||