9f89f93f52
Without the change source fetch fails as: error: hash mismatch in fixed-output derivation '/nix/store/v3wg0ivrglq81zli3b7lybwsmkp9y8w4-v1.6.1.zip.drv': specified: sha256-QSl/9hnAd9QxQm0xyZJ4ElIQDSOVStSzWa+fq3AJHjw= got: sha256-66vXxE4pTUMkmPalLgJrCt2pl2BSWOJ3tiJ5K5wspYY= Co-authored-by: Robert Schütz <github@dotlambda.de>
32 lines
813 B
Nix
32 lines
813 B
Nix
{ lib, stdenv, fetchurl, writeText, unzip, nixosTests, fetchpatch }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "invoiceplane";
|
|
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/
|
|
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 ];
|
|
};
|
|
}
|