nixpkgs/pkgs/tools/security/su-exec/default.nix

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

27 lines
614 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2016-11-26 16:27:56 +00:00
stdenv.mkDerivation rec {
pname = "su-exec";
2016-11-26 16:27:56 +00:00
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 lib; {
2016-11-26 16:27:56 +00:00
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;
};
}