diff options
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 | } | ||