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
733 B
Nix
Raw Normal View History

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 {
pname = "gosu";
2022-12-20 00:48:08 +00:00
version = "1.16";
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;
2022-12-20 00:48:08 +00:00
hash = "sha256-UfrhrwsnDT7pfizQtQzqv/1FTMBTrk3qmtiR7ffwwhc=";
2017-09-07 20:27:13 +00:00
};
2022-12-20 00:48:08 +00:00
vendorHash = "sha256-3HIAPI1bbfwE2/cUsQnp2Vz2uvlvSFDUrp2xuGNr8Gk=";
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";
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;
2022-04-04 14:00:59 +00:00
maintainers = with maintainers; [ aaronjheng ];
2022-12-20 00:48:08 +00:00
platforms = platforms.linux;
2017-09-07 20:27:13 +00:00
};
}