2022-04-27 09:35:20 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, gosu }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gosu";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "1.16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tianon";
|
|
|
|
repo = "gosu";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = version;
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-UfrhrwsnDT7pfizQtQzqv/1FTMBTrk3qmtiR7ffwwhc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
vendorHash = "sha256-3HIAPI1bbfwE2/cUsQnp2Vz2uvlvSFDUrp2xuGNr8Gk=";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
ldflags = [ "-d" "-s" "-w" ];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = gosu;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool that avoids TTY and signal-forwarding behavior of sudo and su";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/tianon/gosu";
|
2022-12-28 21:21:41 +00:00
|
|
|
license = licenses.asl20;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
2022-12-28 21:21:41 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|