summary refs log tree commit diff
path: root/pkgs/tools/security/su-exec/default.nix
blob: 8ff33ee1ec91c757c28d40b635fff6fbe9921d95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "su-exec";
  version = "0.2";

  src = fetchFromGitHub {
    owner  = "ncopa";
    repo   = "su-exec";
    rev    = "v${version}";
    sha256 = "12vqlnpv48cjfh25sn98k1myc7h2wiv5qw2y2awgp6sipzv88abv";
  };

  installPhase = ''
    mkdir -p $out/bin
    cp -a su-exec $out/bin/su-exec
  '';

  meta = with stdenv.lib; {
    description = "switch user and group id and exec";
    homepage    = "https://github.com/ncopa/su-exec";
    license     = licenses.mit;
    maintainers = with maintainers; [ zimbatm ];
    platforms   = platforms.linux;
  };
}