]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/commitdiff
Upgrade environment packages to latest
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 23 Apr 2020 23:27:00 +0000 (01:27 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 24 Apr 2020 22:04:59 +0000 (00:04 +0200)
environments/immae-eu.nix
overlays/bonfire/default.nix
overlays/default.nix
overlays/pass/default.nix
overlays/s6/default.nix [deleted file]
overlays/vdirsyncer/default.nix [new file with mode: 0644]

index 90633491510924e2df84fbf3039dc235d4338742..0322b53ae34fe7c49b1ec4437dd33bfa2b32225e 100644 (file)
@@ -90,7 +90,7 @@ let
     mailcap
 
     # password management
-    pass apg pwgen
+    (pass.withExtensions (exts: [ exts.pass-otp ])) apg pwgen
 
     # pdf
     pdftk poppler_utils
index 68bde20f3cb15bb62f9f2ed5b143fc7426a9ac4b..a01e6191d77c98a3b5d2c879742e763cfae9cf5c 100644 (file)
@@ -7,6 +7,10 @@ self: super: {
         inherit version;
         sha256 = "02qkfpykbq35id8glfgwc38yc430427yd05z1wc5cnld8zgicmgi";
       };
+      postPatch = ''
+        substituteInPlace click/_unicodefun.py --replace "'locale'" "'${self.locale}/bin/locale'"
+      '';
+      doCheck = false;
     });
   in
     super.bonfire.overridePythonAttrs(old: {
index b3bc8caf4270b5278ec9e3ee7c5ba18e49abee82..0cefc17cba1db2670f82c02943f563526ea53faa 100644 (file)
@@ -19,7 +19,6 @@
   pelican = import ./pelican;
   postfix = import ./postfix;
   postgresql = import ./databases/postgresql;
-  s6 = import ./s6;
   sc-im = import ./sc-im;
   shaarli = import ./shaarli;
   slrn = import ./slrn;
@@ -30,5 +29,6 @@
   ympd = import ./ympd;
   doing = import ./doing;
   xmr-stak = import ./xmr-stak;
+  vdirsyncer = import ./vdirsyncer;
 }
 // import ./python-packages
index df42cf19fbe293616fcf6227a9e6ba08dc0041c5..262492f51cae0b2dc531297c83c4e60088d3ecc4 100644 (file)
@@ -1,5 +1,5 @@
 self: super: {
-  pass = (super.pass.withExtensions (exts: [ exts.pass-otp ])).overrideAttrs (old:
+  pass = super.pass.overrideAttrs (old:
     self.mylibs.fetchedGit ./pass.json // {
       patches = old.patches ++ [ ./pass-fix-pass-init.patch ];
     }
diff --git a/overlays/s6/default.nix b/overlays/s6/default.nix
deleted file mode 100644 (file)
index ddf0a23..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-self: super: {
-  skawarePackages = super.skawarePackages // (with super.skawarePackages; {
-    skalibs = skalibs.overrideAttrs(old: rec {
-      pname = "skalibs";
-      name = "${pname}-${version}";
-      version = "2.8.1.0";
-      src = self.fetchurl {
-        url = "https://skarnet.org/software/${pname}/${pname}-${version}.tar.gz";
-        sha256 = "1fk6n402ywn4kpy6ng7sfnnqcg0mp6wq2hrv8sv3kxd0nh3na723";
-      };
-    });
-
-    execline = execline.overrideAttrs(old: rec {
-      pname = "execline";
-      name = "${pname}-${version}";
-      version = "2.5.1.0";
-      src = self.fetchurl {
-        url = "https://skarnet.org/software/${pname}/${pname}-${version}.tar.gz";
-        sha256 = "0xr6yb50wm6amj1wc7jmxyv7hvlx2ypbnww1vc288j275625d9xi";
-      };
-    });
-
-    s6 = s6.overrideAttrs(old: rec {
-      pname = "s6";
-      name = "${pname}-${version}";
-      version = "2.8.0.1";
-      src = self.fetchurl {
-        url = "https://skarnet.org/software/${pname}/${pname}-${version}.tar.gz";
-        sha256 = "1n1i3jm3kp9ii54cxj1sgh89m6nyna7vhy8714ma6py1frdqzq6v";
-      };
-    });
-
-    s6-dns = s6-dns.overrideAttrs(old: rec {
-      pname = "s6-dns";
-      name = "${pname}-${version}";
-      version = "2.3.0.2";
-      src = self.fetchurl {
-        url = "https://skarnet.org/software/${pname}/${pname}-${version}.tar.gz";
-        sha256 = "1y9bhvx8bqsb2xq5lmlfnc1hw2b3jyqg11i9r4lj0n6vvaqwh1j8";
-      };
-    });
-
-    s6-linux-utils = s6-linux-utils.overrideAttrs(old: rec {
-      pname = "s6-linux-utils";
-      name = "${pname}-${version}";
-      version = "2.5.0.1";
-      src = self.fetchurl {
-        url = "https://skarnet.org/software/${pname}/${pname}-${version}.tar.gz";
-        sha256 = "0bpcaah3rbz4i013bkarr7wxmfvisjyxg0z78xg5zfbgajpgjxx1";
-      };
-    });
-
-    s6-networking = s6-networking.overrideAttrs(old: rec {
-      pname = "s6-networking";
-      name = "${pname}-${version}";
-      version = "2.3.0.4";
-      src = self.fetchurl {
-        url = "https://skarnet.org/software/${pname}/${pname}-${version}.tar.gz";
-        sha256 = "00kqp0mcp8c7f0z5s4399rd1haxasxkqgd6ds0j0607hvi56mqqa";
-      };
-    });
-
-    s6-portable-utils = s6-portable-utils.overrideAttrs(old: rec {
-      pname = "s6-portable-utils";
-      name = "${pname}-${version}";
-      version = "2.2.1.3";
-      src = self.fetchurl {
-        url = "https://skarnet.org/software/${pname}/${pname}-${version}.tar.gz";
-        sha256 = "1ibjns1slyg1p7jl9irzlrjz8b01f506iw87g3s7db5arhf17vv2";
-      };
-    });
-  });
-}
diff --git a/overlays/vdirsyncer/default.nix b/overlays/vdirsyncer/default.nix
new file mode 100644 (file)
index 0000000..53248f9
--- /dev/null
@@ -0,0 +1,14 @@
+self: super: {
+  vdirsyncer = super.vdirsyncer.overridePythonAttrs(old: {
+    # https://github.com/NixOS/nixpkgs/pull/85809
+    postPatch = old.postPatch + ''
+      sed -i "s/invalid value for \"--verbosity\"/invalid value for \\\'--verbosity\\\'/" tests/system/cli/test_sync.py
+    '';
+  });
+  khal = super.khal.overridePythonAttrs(old: {
+    postPatch = ''
+      sed -i "s/Invalid value for \"ics\"/Invalid value for \\\'ics\\\'/" tests/cli_test.py
+      sed -i "s/Invalid value for \"\[ICS\]\"/Invalid value for \\\'[ICS]\\\'/" tests/cli_test.py
+    '';
+  });
+}