2022-04-15 01:41:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, writeText, unzip, nixosTests, fetchpatch }:
|
2022-01-22 01:22:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "invoiceplane";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.6.1";
|
2022-01-22 01:22:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/InvoicePlane/InvoicePlane/releases/download/v${version}/v${version}.zip";
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-QSl/9hnAd9QxQm0xyZJ4ElIQDSOVStSzWa+fq3AJHjw=";
|
2022-01-22 01:22:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/
|
2022-11-02 22:02:43 +00:00
|
|
|
cp -r ip/. $out/
|
2022-01-22 01:22:15 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|