]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/commitdiff
Move environments to specific attrs
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 25 Jan 2020 18:56:20 +0000 (19:56 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 24 Apr 2020 22:04:44 +0000 (00:04 +0200)
default.nix
environments/default.nix [new file with mode: 0644]
environments/immae-eu.nix [moved from overlays/environments/immae-eu.nix with 89% similarity]
overlays/default.nix
overlays/environments/default.nix [deleted file]
pkgs/default.nix

index ae27e32e88df242ff0089a6d405314c1eca6a151..3a4724bc56843aae6d9dafb7bc0b868f19a51f65 100644 (file)
@@ -8,4 +8,5 @@ in
   modules = import ./modules;
   overlays = import ./overlays;
   pkgs = mypkgs;
+  environments = pkgs.callPackage ./environments {};
 } // mypkgs
diff --git a/environments/default.nix b/environments/default.nix
new file mode 100644 (file)
index 0000000..5f17eb9
--- /dev/null
@@ -0,0 +1,4 @@
+{ callPackage }:
+{
+  immae-eu = callPackage ./immae-eu.nix {};
+}
similarity index 89%
rename from overlays/environments/immae-eu.nix
rename to environments/immae-eu.nix
index 6287a97b962514279728cbd796194ae76dbcacd8..787d3033ad19a02c3aa0193be46c2a0c3398abc1 100644 (file)
@@ -1,4 +1,4 @@
-self: super: with self;
+{ pkgs }: with pkgs;
 let
   # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh
   # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks
@@ -122,12 +122,10 @@ let
     openvpn
   ];
 in
-{
-  myEnvironments.immae-eu = buildEnv {
-    name = "immae-eu-packages";
-    inherit paths;
-    pathsToLink = [ "/bin" "/etc" "/include" "/lib" "/libexec" "/share"];
-    extraOutputsToInstall = [ "bin" "man" "doc" "info" ];
-    passthru = { packages = paths; };
-  };
+buildEnv {
+  name = "immae-eu-packages";
+  inherit paths;
+  pathsToLink = [ "/bin" "/etc" "/include" "/lib" "/libexec" "/share"];
+  extraOutputsToInstall = [ "bin" "man" "doc" "info" ];
+  passthru = { packages = paths; };
 }
index 8445f27ccd30a07e82bfebed8a3135fcc30a90fa..a46986d03afbc9c3851932773412babc46fa1e6e 100644 (file)
@@ -29,4 +29,3 @@
   ympd = import ./ympd;
 }
 // import ./python-packages
-// import ./environments
diff --git a/overlays/environments/default.nix b/overlays/environments/default.nix
deleted file mode 100644 (file)
index 630b0bd..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-  immae-eu = import ./immae-eu.nix;
-}
index 54868ba9aaa51b593baaa931b066bd6a90f92c41..2ad79a2fd46fe9fdb9450d13712aa27a4a74aebe 100644 (file)
@@ -4,6 +4,7 @@ let
   mylibs = import ../lib { inherit pkgs; };
 in
 rec {
+  myEnvironments = callPackage ../environments {};
   boinctui = callPackage ../pkgs/boinctui {};
   cnagios = callPackage ../pkgs/cnagios { inherit mylibs; };
   duply = callPackage ../pkgs/duply {};