32 lines
655 B
Nix
32 lines
655 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "su-exec";
|
|
version = "0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ncopa";
|
|
repo = "su-exec";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-VUaparvPZhVOtAVPULIDQmpLUypl9aYYZlZrIIxuoTI=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -a su-exec $out/bin/su-exec
|
|
'';
|
|
|
|
meta = {
|
|
description = "Switch user and group id and exec";
|
|
mainProgram = "su-exec";
|
|
homepage = "https://github.com/ncopa/su-exec";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ zimbatm ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|