summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vidhar/borg')
-rw-r--r--hosts/vidhar/borg/default.nix7
-rw-r--r--hosts/vidhar/borg/pyprctl-packages.nix21
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
6self: 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}