nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 26f1d9b1dc59fb706e2c3fabccde444d5dcbbb02
parent 4bfc0890bd758323f4e037e9b72f6a5c87f9f388
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sat, 13 Apr 2024 23:20:44 +0400

Add acp

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/acp/default.nix | 25+++++++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -340,6 +340,7 @@ lib.makeScope newScope ( ### MISC aamath = callPackage ./misc/aamath { }; + acp = callPackage ./misc/acp { }; apibackuper = callPackage ./misc/apibackuper { }; arduinojson = callPackage ./misc/arduinojson { }; ascii-dash = callPackage ./misc/ascii-dash { }; diff --git a/pkgs/misc/acp/default.nix b/pkgs/misc/acp/default.nix @@ -0,0 +1,25 @@ +{ lib, fetchFromGitHub, buildGoModule }: + +buildGoModule rec { + pname = "acp"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "Contextualist"; + repo = "acp"; + rev = "v${version}"; + hash = "sha256-qoS3lHr98S5uqmwZ3rZwPDZEQRTDIrxChfOlppbJHI4="; + }; + + vendorHash = "sha256-OCoghYUNznwBz7JN2MkHzdngA+mhHcfFIpw8ZMxeeMc="; + + ldflags = [ "-X main.buildTag=${version}" ]; + + meta = with lib; { + description = "Make terminal personal file transfers as simple as `cp`"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + mainProgram = "acp"; + }; +}