mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
31 lines
748 B
Nix
31 lines
748 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, gosu }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gosu";
|
|
version = "1.17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tianon";
|
|
repo = "gosu";
|
|
rev = version;
|
|
hash = "sha256-ziviUXqCpCGECewyZNLDKSjnpmz/3i5DKrIKZlLwl4o=";
|
|
};
|
|
|
|
vendorHash = "sha256-fygLYSO0kpMFJd6WQp/uLYkELkyaOPZ9V8BrJcIcMuU=";
|
|
|
|
ldflags = [ "-d" "-s" "-w" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = gosu;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Tool that avoids TTY and signal-forwarding behavior of sudo and su";
|
|
mainProgram = "gosu";
|
|
homepage = "https://github.com/tianon/gosu";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|