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 {
|
2019-08-15 12:41:18 +00:00
|
|
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
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;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2022-12-20 00:48:08 +00:00
|
|
|
platforms = platforms.linux;
|
2017-09-07 20:27:13 +00:00
|
|
|
};
|
|
|
|
}
|