mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
28 lines
869 B
Nix
28 lines
869 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "portal";
|
|
version = "1.2.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SpatiumPortae";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-hGB82a2WirUL1Tph6EuoITOQGYA0Lo4zOeKPC46B5Qk=";
|
|
};
|
|
|
|
vendorHash = "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 = "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 ];
|
|
mainProgram = "portal";
|
|
};
|
|
}
|