From 4955943101c3646024302744f45eb7956d22a72b Mon Sep 17 00:00:00 2001 From: Andraz Brodnik Date: Thu, 7 Sep 2017 22:27:13 +0200 Subject: [PATCH] Add gosu --- pkgs/tools/misc/gosu/default.nix | 24 ++++++++++++++++++++++++ pkgs/tools/misc/gosu/deps.nix | 11 +++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 37 insertions(+) create mode 100644 pkgs/tools/misc/gosu/default.nix create mode 100644 pkgs/tools/misc/gosu/deps.nix diff --git a/pkgs/tools/misc/gosu/default.nix b/pkgs/tools/misc/gosu/default.nix new file mode 100644 index 000000000000..81606e1ca7f8 --- /dev/null +++ b/pkgs/tools/misc/gosu/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }: + +buildGoPackage rec { + name = "gosu-${version}"; + version = "2017-05-09"; + rev = "e87cf95808a7b16208515c49012aa3410bc5bba8"; + + goPackagePath = "github.com/tianon/gosu"; + + src = fetchgit { + inherit rev; + url = "https://github.com/tianon/gosu"; + sha256 = "1qp1cfx0hrr4qlnh7rhjb4xlxv9697flmgzzl6jcdkrpk1f0bz8m"; + }; + + goDeps = ./deps.nix; + + meta = { + description= "Tool that avoids TTY and signal-forwarding behavior of sudo and su"; + homepage = "https://github.com/tianon/gosu"; + licence = stdenv.lib.licenses.gpl3; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/tools/misc/gosu/deps.nix b/pkgs/tools/misc/gosu/deps.nix new file mode 100644 index 000000000000..9bdfa3923401 --- /dev/null +++ b/pkgs/tools/misc/gosu/deps.nix @@ -0,0 +1,11 @@ +[ + { + goPackagePath = "github.com/opencontainers/runc"; + fetch = { + type = "git"; + url = "https://github.com/opencontainers/runc"; + rev = "5274430fee9bc930598cfd9c9dbd33213f79f96e"; + sha256 = "149057gm2y1mc45s7bh43c1ngjg1m54jkpaxw534ir9v5mb1zsxx"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ce213c8688a1..c089cc71e6b2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1081,6 +1081,8 @@ with pkgs; gorilla-bin = callPackage ../tools/security/gorilla-bin { }; + gosu = callPackage ../tools/misc/gosu { }; + gringo = callPackage ../tools/misc/gringo { }; gti = callPackage ../tools/misc/gti { };