From d21de7a044cc39c452306880707f79162b666b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 7 May 2019 00:24:33 +0200 Subject: Move kanboard to overlays --- overlays/default.nix | 1 + overlays/kanboard/default.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 overlays/kanboard/default.nix (limited to 'overlays') 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 @@ elinks = import ./elinks; gitweb = import ./gitweb; goaccess = import ./goaccess; + kanboard = import ./kanboard; ldapvi = import ./ldapvi; lesspipe = import ./lesspipe; 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 @@ +self: super: { + kanboard = { varDir ? "/var/lib/kanboard", kanboard_config ? "/etc/kanboard/config.php" }: + super.kanboard.overrideAttrs(old: rec { + name = "kanboard-${version}"; + version = "1.2.9"; + src = self.fetchFromGitHub { + owner = "kanboard"; + repo = "kanboard"; + rev = "c4152316b14936556edf3bcc4d11f16ba31b8ae7"; + sha256 = "18bn9zhyfc5x28hwcxss7chdq7c8rshc8jxgai65i5l68iwhvjg7"; + }; + installPhase = '' + cp -a . $out + ln -s ${kanboard_config} $out/config.php + mv $out/data $out/dataold + ln -s ${varDir}/data $out/data + ''; + }); +} -- cgit v1.2.3