mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
33 lines
815 B
Nix
33 lines
815 B
Nix
{ lib, stdenv, fetchurl, writeText, unzip, nixosTests, fetchpatch }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "invoiceplane";
|
|
version = "1.6.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/InvoicePlane/InvoicePlane/releases/download/v${version}/v${version}.zip";
|
|
sha256 = "sha256-EwhOwUoOy3LNZTDgp9kvR/0OsO2TDpWkdT0fd7u0Ns8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/
|
|
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 ];
|
|
};
|
|
}
|