From 0378e2e65ec8bdac95f56bbe54694bf148702fc5 Mon Sep 17 00:00:00 2001 From: Mostly Void <7rat13@gmail.com> Date: Sat, 8 Jul 2023 13:34:04 +0200 Subject: [PATCH] invoice: init at 0.1.0 --- pkgs/tools/misc/invoice/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tools/misc/invoice/default.nix diff --git a/pkgs/tools/misc/invoice/default.nix b/pkgs/tools/misc/invoice/default.nix new file mode 100644 index 000000000000..cffdec4063e3 --- /dev/null +++ b/pkgs/tools/misc/invoice/default.nix @@ -0,0 +1,24 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "invoice"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "maaslalani"; + repo = "invoice"; + rev = "v${version}"; + hash = "sha256-WtQ4nF31uIoplY18GZNs41ZOCxmbIu71YpEGk8aTGww="; + }; + + vendorHash = "sha256-8VhBflnpsJ5h8S6meDFZKCcS2nz5u4kPE9W710gJG4U="; + + ldflags = [ "-s" "-w" ]; + + meta = with lib; { + description = "Command line invoice generator"; + homepage = "https://github.com/maaslalani/invoice"; + license = licenses.mit; + maintainers = with maintainers; [ dit7ya ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bbd930189032..0506a087c197 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5288,6 +5288,8 @@ with pkgs; interlock = callPackage ../servers/interlock { }; + invoice = callPackage ../tools/misc/invoice { }; + invoiceplane = callPackage ../servers/web-apps/invoiceplane { }; iotas = callPackage ../applications/office/iotas { };