5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
29 lines
722 B
Nix
29 lines
722 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, gosu }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gosu";
|
|
version = "1.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tianon";
|
|
repo = "gosu";
|
|
rev = version;
|
|
hash = "sha256-UfrhrwsnDT7pfizQtQzqv/1FTMBTrk3qmtiR7ffwwhc=";
|
|
};
|
|
|
|
vendorHash = "sha256-3HIAPI1bbfwE2/cUsQnp2Vz2uvlvSFDUrp2xuGNr8Gk=";
|
|
|
|
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;
|
|
};
|
|
}
|