2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "switch user and group id and exec";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "su-exec";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/ncopa/su-exec";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|