nixpkgs/pkgs/servers/web-apps/invoiceplane/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
790 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, unzip, nixosTests }:
stdenv.mkDerivation rec {
pname = "invoiceplane";
2023-12-17 12:06:32 +03:00
version = "1.6.1";
src = fetchurl {
url = "https://github.com/InvoicePlane/InvoicePlane/releases/download/v${version}/v${version}.zip";
hash = "sha256-66vXxE4pTUMkmPalLgJrCt2pl2BSWOJ3tiJ5K5wspYY=";
};
nativeBuildInputs = [ unzip ];
sourceRoot = ".";
installPhase = ''
mkdir -p $out/
2022-10-02 15:46:51 +03:00
cp -r ip/. $out/
'';
passthru.tests = {
inherit (nixosTests) invoiceplane;
};
meta = with lib; {
description = "Self-hosted open source application for managing your invoices, clients and payments";
license = licenses.mit;
homepage = "https://www.invoiceplane.com";
platforms = platforms.all;
maintainers = with maintainers; [ onny ];
};
}