aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2021-08-24 00:29:45 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2021-09-30 00:39:55 +0200
commit660cb973260f62551294f73e0811b37fc10fd467 (patch)
tree7785e96caabb8024016620777fdf5d39467e1ab1
parent1c732acd070287818ce05acbb86fdf82da9bb763 (diff)
downloadNix-660cb973260f62551294f73e0811b37fc10fd467.tar.gz
Nix-660cb973260f62551294f73e0811b37fc10fd467.tar.zst
Nix-660cb973260f62551294f73e0811b37fc10fd467.zip
Refactor flakes
Third iteration
-rw-r--r--flakes/libspf2/default.nix2
-rw-r--r--flakes/private/peertube/flake.nix4
-rw-r--r--overlays/default.nix11
-rw-r--r--pkgs/default.nix2
4 files changed, 15 insertions, 4 deletions
diff --git a/flakes/libspf2/default.nix b/flakes/libspf2/default.nix
index a9e5ec3..d22c738 100644
--- a/flakes/libspf2/default.nix
+++ b/flakes/libspf2/default.nix
@@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
6 patches = [ 6 patches = [
7 (fetchpatch { 7 (fetchpatch {
8 name = "fix-variadic-macros.patch"; 8 name = "fix-variadic-macros.patch";
9 url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/fix-variadic-macros.patch?h=packages/libspf2"; 9 url = "https://github.com/shevek/libspf2/commit/5852828582f556e73751076ad092f72acf7fc8b6.patch";
10 sha256 = "00dqpcgjr9jy2qprgqv2qiyvq8y3wlz4yns9xzabf2064jzqh2ic"; 10 sha256 = "00dqpcgjr9jy2qprgqv2qiyvq8y3wlz4yns9xzabf2064jzqh2ic";
11 }) 11 })
12 ]; 12 ];
diff --git a/flakes/private/peertube/flake.nix b/flakes/private/peertube/flake.nix
index e16cbaf..e0e0d54 100644
--- a/flakes/private/peertube/flake.nix
+++ b/flakes/private/peertube/flake.nix
@@ -16,6 +16,10 @@
16 }; 16 };
17 17
18 outputs = { self, peertube_origin, peertube_syden }: { 18 outputs = { self, peertube_origin, peertube_syden }: {
19 overlays = {
20 peertube_syden = final: prev: { peertube_syden = peertube_syden.defaultPackage."${final.system}"; };
21 peertube_origin = final: prev: { peertube_origin = peertube_origin.defaultPackage."${final.system}"; };
22 };
19 packages.x86_64-linux.peertube = peertube_origin.packages.x86_64-linux.peertube; 23 packages.x86_64-linux.peertube = peertube_origin.packages.x86_64-linux.peertube;
20 packages.x86_64-linux.peertube_syden = peertube_syden.packages.x86_64-linux.peertube; 24 packages.x86_64-linux.peertube_syden = peertube_syden.packages.x86_64-linux.peertube;
21 defaultPackage.x86_64-linux = peertube_origin.defaultPackage.x86_64-linux; 25 defaultPackage.x86_64-linux = peertube_origin.defaultPackage.x86_64-linux;
diff --git a/overlays/default.nix b/overlays/default.nix
index 73c7744..9b0615a 100644
--- a/overlays/default.nix
+++ b/overlays/default.nix
@@ -1,4 +1,13 @@
1{ 1let
2 flakeCompat = import ../lib/flake-compat.nix;
3 flakes = builtins.foldl' (a: b: a // b) {} (map (n: (flakeCompat n).overlays) [
4 ../flakes/libspf2
5 ../flakes/openarc
6 ../flakes/opendmarc
7 ../flakes/peertube
8 ../flakes/private/peertube
9 ]);
10in flakes // {
2 mylibs = self: super: { mylibs = import ../lib { pkgs = self; }; }; 11 mylibs = self: super: { mylibs = import ../lib { pkgs = self; }; };
3 mypkgs = self: super: import ../pkgs { pkgs = self; }; 12 mypkgs = self: super: import ../pkgs { pkgs = self; };
4 13
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 2f5f529..204f751 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -23,8 +23,6 @@ rec {
23 notmuch-python2 = callPackage ./notmuch/notmuch-python { pythonPackages = python2Packages; }; 23 notmuch-python2 = callPackage ./notmuch/notmuch-python { pythonPackages = python2Packages; };
24 notmuch-python3 = callPackage ./notmuch/notmuch-python { pythonPackages = python3Packages; }; 24 notmuch-python3 = callPackage ./notmuch/notmuch-python { pythonPackages = python3Packages; };
25 notmuch-vim = callPackage ./notmuch/notmuch-vim {}; 25 notmuch-vim = callPackage ./notmuch/notmuch-vim {};
26 openarc = (mylibs.flakeCompat ../flakes/openarc).default;
27 opendmarc = (mylibs.flakeCompat ../flakes/opendmarc).default;
28 pg_activity = callPackage ./pg_activity { inherit mylibs; }; 26 pg_activity = callPackage ./pg_activity { inherit mylibs; };
29 pgloader = callPackage ./pgloader {}; 27 pgloader = callPackage ./pgloader {};
30 predixy = callPackage ./predixy { inherit mylibs; }; 28 predixy = callPackage ./predixy { inherit mylibs; };