diff --git a/pkgs/default.nix b/pkgs/default.nix index f18f499..45cf668 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -8,6 +8,7 @@ deploy = super.callPackage ./deploy.nix {}; netbird-dashboard = super.callPackage ./netbird-dashboard {}; minify = super.callPackage ./minify {}; + firefly-iii = super.callPackage ./fireflyIII.nix {}; mongodb-bin = super.callPackage ./mongodb-bin.nix {}; awakened-poe-trade = super.callPackage ./awakened-poe-trade.nix {}; neovim-clean = super.neovim-unwrapped.overrideAttrs (_neovimFinal: neovimPrev: { diff --git a/pkgs/fireflyIII.nix b/pkgs/fireflyIII.nix new file mode 100644 index 0000000..b332ba4 --- /dev/null +++ b/pkgs/fireflyIII.nix @@ -0,0 +1,33 @@ +{ + lib, + stdenv, + fetchFromGitHub, +}: +stdenv.mkDerivation rec { + pname = "firefly-iii"; + version = "6.1.13"; + + src = fetchFromGitHub { + owner = "firefly-iii"; + repo = "firefly-iii"; + rev = "v${version}"; + hash = "sha256-85zI8uCyyoCflzxDkvba6FWa9B3kh179DJfQ2Um6MGM="; + }; + + installPhase = '' + runHook preInstall + mkdir -p $out/ + cp -R . $out/ + runHook postInstall + ''; + + meta = with lib; { + description = "Firefly III: a personal finances manager"; + homepage = "https://github.com/firefly-iii/firefly-iii/"; + changelog = "https://github.com/firefly-iii/firefly-iii/releases/tag/v${version}"; + license = licenses.agpl3Only; + maintainers = with maintainers; [patrickdag]; + mainProgram = "firefly-iii"; + platforms = platforms.all; + }; +}