2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
29 lines
722 B
Nix
29 lines
722 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, gosu }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gosu";
|
|
version = "1.17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tianon";
|
|
repo = "gosu";
|
|
rev = version;
|
|
hash = "sha256-ziviUXqCpCGECewyZNLDKSjnpmz/3i5DKrIKZlLwl4o=";
|
|
};
|
|
|
|
vendorHash = "sha256-fygLYSO0kpMFJd6WQp/uLYkELkyaOPZ9V8BrJcIcMuU=";
|
|
|
|
ldflags = [ "-d" "-s" "-w" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = gosu;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Tool that avoids TTY and signal-forwarding behavior of sudo and su";
|
|
homepage = "https://github.com/tianon/gosu";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|