diff options
author | Manu [tennox] <2084639+tennox@users.noreply.github.com> | 2023-03-10 18:18:02 +0100 |
---|---|---|
committer | Manu [tennox] <2084639+tennox@users.noreply.github.com> | 2023-03-10 18:21:36 +0100 |
commit | 9897255a21aecbfb4f098d7f1d22363b7dcc56b2 (patch) | |
tree | be07a7dcf735957bdd36262f0c1a41b72305d19a /pkgs/tools/misc/portal | |
parent | c1222f071a8f3be66de3f18de9408ff04231ccc8 (diff) |
portal: init at 1.2.2
https://github.com/SpatiumPortae/portal
Diffstat (limited to 'pkgs/tools/misc/portal')
-rw-r--r-- | pkgs/tools/misc/portal/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/misc/portal/default.nix b/pkgs/tools/misc/portal/default.nix new file mode 100644 index 0000000000000..a99f2be7f61ef --- /dev/null +++ b/pkgs/tools/misc/portal/default.nix @@ -0,0 +1,26 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "portal"; + version = "1.2.2"; + + src = fetchFromGitHub { + owner = "SpatiumPortae"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-80ZWMYGH5D5C5Lw97Sic3duw+oXBzIxQjJ+6uQLBwJQ="; + }; + + vendorSha256 = "sha256-SbNFi5DE3zhTUw0rsX6n+dpYcdDsaDh+zVUrfxgo/4g="; + subPackages = [ "cmd/portal/" ]; + + ldflags = [ "-s -X main.version=${version}" ]; # from: https://github.com/SpatiumPortae/portal/blob/master/Makefile#L3 + + meta = with lib; { + description = "A quick and easy command-line file transfer utility from any computer to another"; + homepage = "https://github.com/SpatiumPortae/portal"; + changelog = "https://github.com/SpatiumPortae/portal/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ tennox ]; + }; +} |