diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-12-28 16:58:34 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-12-28 16:58:34 +0100 |
commit | ab5d04b8aea9bf0d4e4f3b86bc0fa86407290a46 (patch) | |
tree | 9b9be98bccb10348637690a7b026765156d751e0 /virtual | |
parent | dedf591df65bcd1222a9e053fd6fc7631f74ab7e (diff) | |
download | Nix-ab5d04b8aea9bf0d4e4f3b86bc0fa86407290a46.tar.gz Nix-ab5d04b8aea9bf0d4e4f3b86bc0fa86407290a46.tar.zst Nix-ab5d04b8aea9bf0d4e4f3b86bc0fa86407290a46.zip |
Import additional packages
Diffstat (limited to 'virtual')
-rw-r--r-- | virtual/eldiron.nix | 5 | ||||
-rw-r--r-- | virtual/packages.nix | 25 |
2 files changed, 29 insertions, 1 deletions
diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix index cfbb464..1c2fca6 100644 --- a/virtual/eldiron.nix +++ b/virtual/eldiron.nix | |||
@@ -4,7 +4,10 @@ | |||
4 | enableRollback = true; | 4 | enableRollback = true; |
5 | }; | 5 | }; |
6 | 6 | ||
7 | eldiron = { config, pkgs, ... }: { | 7 | eldiron = { config, pkgs, ... }: |
8 | let mypkgs = import ./packages.nix; | ||
9 | in | ||
10 | { | ||
8 | networking = { | 11 | networking = { |
9 | firewall = { | 12 | firewall = { |
10 | enable = true; | 13 | enable = true; |
diff --git a/virtual/packages.nix b/virtual/packages.nix new file mode 100644 index 0000000..6c552f6 --- /dev/null +++ b/virtual/packages.nix | |||
@@ -0,0 +1,25 @@ | |||
1 | with import (builtins.fetchTarball { | ||
2 | # FIXME: upgrade to nixpkgs 19 when stable and stick to stable | ||
3 | # versions | ||
4 | name = "nixos-unstable-2018-12-08"; | ||
5 | url = https://github.com/nixos/nixpkgs/archive/61c3169a0e17d789c566d5b241bfe309ce4a6275.tar.gz; | ||
6 | sha256 = "0qbycg7wkb71v20rchlkafrjfpbk2fnlvvbh3ai9pyfisci5wxvq"; | ||
7 | }) {}; | ||
8 | let | ||
9 | adminer = pkgs.stdenv.mkDerivation rec { | ||
10 | name = "adminer-4.7.0"; | ||
11 | src = pkgs.fetchurl { | ||
12 | url = "https://www.adminer.org/static/download/4.7.0/${name}.php"; | ||
13 | sha256 = "1qq2g7rbfh2vrqfm3g0bz0qs057b049n0mhabnsbd1sgnpvnc5z7"; | ||
14 | }; | ||
15 | phases = "installPhase"; | ||
16 | installPhase = '' | ||
17 | mkdir -p $out | ||
18 | cp $src $out/index.php | ||
19 | ''; | ||
20 | }; | ||
21 | |||
22 | in | ||
23 | { | ||
24 | inherit adminer; | ||
25 | } | ||