diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-07 00:41:04 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-07 00:41:04 +0200 |
commit | 7da817e32f5e285f5fe09726f6031d8c6d4c74ea (patch) | |
tree | a14f400f40e4a69c1edd57384ba719ace06afe8f /pkgs | |
parent | d21de7a044cc39c452306880707f79162b666b60 (diff) | |
download | Nix-7da817e32f5e285f5fe09726f6031d8c6d4c74ea.tar.gz Nix-7da817e32f5e285f5fe09726f6031d8c6d4c74ea.tar.zst Nix-7da817e32f5e285f5fe09726f6031d8c6d4c74ea.zip |
Move adminer to pkgs
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/webapps/adminer/default.nix | 14 | ||||
-rw-r--r-- | pkgs/webapps/default.nix | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/webapps/adminer/default.nix b/pkgs/webapps/adminer/default.nix new file mode 100644 index 0000000..b78a2e0 --- /dev/null +++ b/pkgs/webapps/adminer/default.nix | |||
@@ -0,0 +1,14 @@ | |||
1 | { stdenv, fetchurl }: | ||
2 | stdenv.mkDerivation rec { | ||
3 | version = "4.7.1"; | ||
4 | name = "adminer-${version}"; | ||
5 | src = fetchurl { | ||
6 | url = "https://www.adminer.org/static/download/${version}/${name}.php"; | ||
7 | sha256 = "00gnck9vd44wc6ihf7hh4ma6jvdsw69xgjlkbrdf6irnni6rnvhn"; | ||
8 | }; | ||
9 | phases = "installPhase"; | ||
10 | installPhase = '' | ||
11 | mkdir -p $out | ||
12 | cp $src $out/index.php | ||
13 | ''; | ||
14 | } | ||
diff --git a/pkgs/webapps/default.nix b/pkgs/webapps/default.nix index 4403f5d..3b9cadf 100644 --- a/pkgs/webapps/default.nix +++ b/pkgs/webapps/default.nix | |||
@@ -42,4 +42,6 @@ rec { | |||
42 | in | 42 | in |
43 | lib.attrsets.genAttrs names | 43 | lib.attrsets.genAttrs names |
44 | (name: callPackage (./dokuwiki/plugins + "/${name}.nix") {}); | 44 | (name: callPackage (./dokuwiki/plugins + "/${name}.nix") {}); |
45 | |||
46 | adminer = callPackage ./adminer {}; | ||
45 | } | 47 | } |