From 9897255a21aecbfb4f098d7f1d22363b7dcc56b2 Mon Sep 17 00:00:00 2001 From: "Manu [tennox]" <2084639+tennox@users.noreply.github.com> Date: Fri, 10 Mar 2023 18:18:02 +0100 Subject: [PATCH] portal: init at 1.2.2 https://github.com/SpatiumPortae/portal --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/tools/misc/portal/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 pkgs/tools/misc/portal/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 34d7aa4c4f93..5298bf017535 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14711,6 +14711,12 @@ githubId = 1755789; name = "Robert Irelan"; }; + tennox = { + email = "tennox+nix@txlab.io"; + github = "tennox"; + githubId = 2084639; + name = "Manu"; + }; teozkr = { email = "teo@nullable.se"; github = "nightkr"; diff --git a/pkgs/tools/misc/portal/default.nix b/pkgs/tools/misc/portal/default.nix new file mode 100644 index 000000000000..a99f2be7f61e --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8cfcec3dda58..c4c780ad29cb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5468,6 +5468,8 @@ with pkgs; electron = electron_22; }; + portal = callPackage ../tools/misc/portal { }; + pouf = callPackage ../tools/misc/pouf { }; poweralertd = callPackage ../tools/misc/poweralertd { };