From 695c4343dab78e44ff99154ff22a9aa5c3a4ab4c Mon Sep 17 00:00:00 2001 From: Freya Arbjerg Date: Fri, 2 Feb 2024 21:50:19 +0100 Subject: [PATCH] skrive: init at 0.10.0 --- pkgs/by-name/sk/skrive/package.nix | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/sk/skrive/package.nix diff --git a/pkgs/by-name/sk/skrive/package.nix b/pkgs/by-name/sk/skrive/package.nix new file mode 100644 index 0000000000000..59b4094383e12 --- /dev/null +++ b/pkgs/by-name/sk/skrive/package.nix @@ -0,0 +1,36 @@ +{ + lib, + fetchFromGitHub, + buildGoModule, + installShellFiles, +}: + +buildGoModule rec { + pname = "skrive"; + version = "0.10.0"; + src = fetchFromGitHub { + owner = "VanuPhantom"; + repo = "skrive"; + rev = "refs/tags/v${version}"; + hash = "sha256-thEq9mMQl9BNlc5PKbEjOoSsVO0ENSpDy0nQ7uplPus="; + }; + + vendorHash = "sha256-NLkrUaEpwvQhMcNcUbBiaPQKRocLT1RSwAIcMOrRdmg="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + mv skrive.1.man skrive.1 + installManPage skrive.1 + ''; + + meta = with lib; { + description = "Secure and sleek dosage logging for the terminal"; + homepage = "https://github.com/VanuPhantom/skrive"; + changelog = "https://github.com/VanuPhantom/skrive/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ freyacodes ]; + mainProgram = "skrive"; + platforms = platforms.all; + }; +}