nixpkgs/pkgs/by-name/go/gosu/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
730 B
Nix
Raw Normal View History

2022-04-26 07:59:39 +00:00
{ lib, buildGoModule, fetchFromGitHub, testers, gosu }:
2017-09-07 20:27:13 +00:00
2022-04-04 14:00:59 +00:00
buildGoModule rec {
pname = "gosu";
2023-11-03 09:56:27 +00:00
version = "1.17";
2017-09-07 20:27:13 +00:00
2022-03-08 14:27:28 +00:00
src = fetchFromGitHub {
owner = "tianon";
repo = "gosu";
2022-04-04 14:00:59 +00:00
rev = version;
2023-11-03 09:56:27 +00:00
hash = "sha256-ziviUXqCpCGECewyZNLDKSjnpmz/3i5DKrIKZlLwl4o=";
2017-09-07 20:27:13 +00:00
};
2023-11-03 09:56:27 +00:00
vendorHash = "sha256-fygLYSO0kpMFJd6WQp/uLYkELkyaOPZ9V8BrJcIcMuU=";
2022-04-04 14:00:59 +00:00
ldflags = [ "-d" "-s" "-w" ];
2022-04-26 07:59:39 +00:00
passthru.tests.version = testers.testVersion {
2022-04-04 14:00:59 +00:00
package = gosu;
};
2017-09-07 20:27:13 +00:00
2022-04-04 14:00:59 +00:00
meta = with lib; {
description = "Tool that avoids TTY and signal-forwarding behavior of sudo and su";
mainProgram = "gosu";
2017-09-07 20:27:13 +00:00
homepage = "https://github.com/tianon/gosu";
2022-12-20 00:48:08 +00:00
license = licenses.asl20;
maintainers = [ ];
2022-12-20 00:48:08 +00:00
platforms = platforms.linux;
2017-09-07 20:27:13 +00:00
};
}