2022-04-26 09:59:39 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, gosu }:
|
2017-09-07 22:27:13 +02:00
|
|
|
|
2022-04-04 16:00:59 +02:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gosu";
|
2022-04-04 16:00:59 +02:00
|
|
|
version = "1.14";
|
2017-09-07 22:27:13 +02:00
|
|
|
|
2022-03-08 15:27:28 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tianon";
|
|
|
|
repo = "gosu";
|
2022-04-04 16:00:59 +02:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-qwoHQB37tY8Pz8CHleYZI+SGkbHG7P/vgfXVMSyqi10=";
|
2017-09-07 22:27:13 +02:00
|
|
|
};
|
|
|
|
|
2022-04-04 16:00:59 +02:00
|
|
|
vendorSha256 = "sha256-yxrOLCtSrY/a84N5yRWGUx1L425TckjvRyn/rtkzsRY=";
|
|
|
|
|
|
|
|
ldflags = [ "-d" "-s" "-w" ];
|
|
|
|
|
2022-04-26 09:59:39 +02:00
|
|
|
passthru.tests.version = testers.testVersion {
|
2022-04-04 16:00:59 +02:00
|
|
|
package = gosu;
|
|
|
|
};
|
2017-09-07 22:27:13 +02:00
|
|
|
|
2022-04-04 16:00:59 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool that avoids TTY and signal-forwarding behavior of sudo and su";
|
2017-09-07 22:27:13 +02:00
|
|
|
homepage = "https://github.com/tianon/gosu";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.gpl3;
|
2022-04-04 16:00:59 +02:00
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
2021-01-15 10:19:50 +01:00
|
|
|
platforms = lib.platforms.linux;
|
2017-09-07 22:27:13 +02:00
|
|
|
};
|
|
|
|
}
|