]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Refactor flakes
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 23 Aug 2021 22:29:45 +0000 (00:29 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 29 Sep 2021 22:39:55 +0000 (00:39 +0200)
Third iteration

flakes/libspf2/default.nix
flakes/private/peertube/flake.nix
overlays/default.nix
pkgs/default.nix

index a9e5ec35fb55218bd0ff696f437ba55dc989da9f..d22c738a5ebd3171162a14245466d61abb6516a9 100644 (file)
@@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
   patches = [
     (fetchpatch {
       name = "fix-variadic-macros.patch";
-      url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/fix-variadic-macros.patch?h=packages/libspf2";
+      url = "https://github.com/shevek/libspf2/commit/5852828582f556e73751076ad092f72acf7fc8b6.patch";
       sha256 = "00dqpcgjr9jy2qprgqv2qiyvq8y3wlz4yns9xzabf2064jzqh2ic";
     })
   ];
index e16cbafd38fb9414028f4c1e264322e84a09e29b..e0e0d54c1afa9c86925484cbd30e5129bbc798cf 100644 (file)
   };
 
   outputs = { self, peertube_origin, peertube_syden }: {
+    overlays = {
+      peertube_syden = final: prev: { peertube_syden = peertube_syden.defaultPackage."${final.system}"; };
+      peertube_origin = final: prev: { peertube_origin = peertube_origin.defaultPackage."${final.system}"; };
+    };
     packages.x86_64-linux.peertube = peertube_origin.packages.x86_64-linux.peertube;
     packages.x86_64-linux.peertube_syden = peertube_syden.packages.x86_64-linux.peertube;
     defaultPackage.x86_64-linux = peertube_origin.defaultPackage.x86_64-linux;
index 73c774469112bbd2a825a82cef0d7dc687ab425c..9b0615a09475255dd604637a71fdf2394aba3e8a 100644 (file)
@@ -1,4 +1,13 @@
-{
+let
+  flakeCompat = import ../lib/flake-compat.nix;
+  flakes = builtins.foldl' (a: b: a // b) {} (map (n: (flakeCompat n).overlays) [
+    ../flakes/libspf2
+    ../flakes/openarc
+    ../flakes/opendmarc
+    ../flakes/peertube
+    ../flakes/private/peertube
+  ]);
+in flakes // {
   mylibs = self: super: { mylibs = import ../lib { pkgs = self; }; };
   mypkgs = self: super: import ../pkgs { pkgs = self; };
 
index 2f5f5290cd22d7c84954f5be36cc2a5a3b0d9a09..204f751a4384657ba33fe8b56058020491cf066f 100644 (file)
@@ -23,8 +23,6 @@ rec {
   notmuch-python2 = callPackage ./notmuch/notmuch-python { pythonPackages = python2Packages; };
   notmuch-python3 = callPackage ./notmuch/notmuch-python { pythonPackages = python3Packages; };
   notmuch-vim = callPackage ./notmuch/notmuch-vim {};
-  openarc = (mylibs.flakeCompat ../flakes/openarc).default;
-  opendmarc = (mylibs.flakeCompat ../flakes/opendmarc).default;
   pg_activity = callPackage ./pg_activity { inherit mylibs; };
   pgloader = callPackage ./pgloader {};
   predixy = callPackage ./predixy { inherit mylibs; };