diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-07 00:24:33 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-07 00:24:33 +0200 |
commit | d21de7a044cc39c452306880707f79162b666b60 (patch) | |
tree | 2e33e036edc5a1ef5b21e0f654afc7ea543d6dce /overlays | |
parent | c9d13ae319b4f01202a1afad046c3c1add1cc7ba (diff) | |
download | Nix-d21de7a044cc39c452306880707f79162b666b60.tar.gz Nix-d21de7a044cc39c452306880707f79162b666b60.tar.zst Nix-d21de7a044cc39c452306880707f79162b666b60.zip |
Move kanboard to overlays
Diffstat (limited to 'overlays')
-rw-r--r-- | overlays/default.nix | 1 | ||||
-rw-r--r-- | overlays/kanboard/default.nix | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/overlays/default.nix b/overlays/default.nix index 9ed703c..501be73 100644 --- a/overlays/default.nix +++ b/overlays/default.nix | |||
@@ -7,6 +7,7 @@ | |||
7 | elinks = import ./elinks; | 7 | elinks = import ./elinks; |
8 | gitweb = import ./gitweb; | 8 | gitweb = import ./gitweb; |
9 | goaccess = import ./goaccess; | 9 | goaccess = import ./goaccess; |
10 | kanboard = import ./kanboard; | ||
10 | ldapvi = import ./ldapvi; | 11 | ldapvi = import ./ldapvi; |
11 | lesspipe = import ./lesspipe; | 12 | lesspipe = import ./lesspipe; |
12 | mysql = import ./databases/mysql; | 13 | mysql = import ./databases/mysql; |
diff --git a/overlays/kanboard/default.nix b/overlays/kanboard/default.nix new file mode 100644 index 0000000..eeae8db --- /dev/null +++ b/overlays/kanboard/default.nix | |||
@@ -0,0 +1,19 @@ | |||
1 | self: super: { | ||
2 | kanboard = { varDir ? "/var/lib/kanboard", kanboard_config ? "/etc/kanboard/config.php" }: | ||
3 | super.kanboard.overrideAttrs(old: rec { | ||
4 | name = "kanboard-${version}"; | ||
5 | version = "1.2.9"; | ||
6 | src = self.fetchFromGitHub { | ||
7 | owner = "kanboard"; | ||
8 | repo = "kanboard"; | ||
9 | rev = "c4152316b14936556edf3bcc4d11f16ba31b8ae7"; | ||
10 | sha256 = "18bn9zhyfc5x28hwcxss7chdq7c8rshc8jxgai65i5l68iwhvjg7"; | ||
11 | }; | ||
12 | installPhase = '' | ||
13 | cp -a . $out | ||
14 | ln -s ${kanboard_config} $out/config.php | ||
15 | mv $out/data $out/dataold | ||
16 | ln -s ${varDir}/data $out/data | ||
17 | ''; | ||
18 | }); | ||
19 | } | ||