nixpkgs/pkgs/tools/misc/gosu/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
722 B
Nix
Raw Normal View History

2022-04-26 08:59:39 +01:00
{ lib, buildGoModule, fetchFromGitHub, testers, gosu }:
2017-09-07 21:27:13 +01:00
2022-04-04 15:00:59 +01:00
buildGoModule rec {
pname = "gosu";
2023-11-03 09:56:27 +00:00
version = "1.17";
2017-09-07 21:27:13 +01:00
2022-03-08 14:27:28 +00:00
src = fetchFromGitHub {
owner = "tianon";
repo = "gosu";
2022-04-04 15:00:59 +01:00
rev = version;
2023-11-03 09:56:27 +00:00
hash = "sha256-ziviUXqCpCGECewyZNLDKSjnpmz/3i5DKrIKZlLwl4o=";
2017-09-07 21:27:13 +01:00
};
2023-11-03 09:56:27 +00:00
vendorHash = "sha256-fygLYSO0kpMFJd6WQp/uLYkELkyaOPZ9V8BrJcIcMuU=";
2022-04-04 15:00:59 +01:00
ldflags = [ "-d" "-s" "-w" ];
2022-04-26 08:59:39 +01:00
passthru.tests.version = testers.testVersion {
2022-04-04 15:00:59 +01:00
package = gosu;
};
2017-09-07 21:27:13 +01:00
2022-04-04 15:00:59 +01:00
meta = with lib; {
description = "Tool that avoids TTY and signal-forwarding behavior of sudo and su";
2017-09-07 21:27:13 +01:00
homepage = "https://github.com/tianon/gosu";
2022-12-20 00:48:08 +00:00
license = licenses.asl20;
2023-09-23 13:35:29 +01:00
maintainers = with maintainers; [ ];
2022-12-20 00:48:08 +00:00
platforms = platforms.linux;
2017-09-07 21:27:13 +01:00
};
}