2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2016-11-26 16:27:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "su-exec";
|
2016-11-26 16:27:56 +00:00
|
|
|
version = "0.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ncopa";
|
|
|
|
repo = "su-exec";
|
|
|
|
rev = "v${version}";
|
2024-09-14 21:47:11 +00:00
|
|
|
hash = "sha256-eymE9r9Rm/u4El5wXHbkAh7ma5goWV0EdJIhsq+leIs=";
|
2016-11-26 16:27:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a su-exec $out/bin/su-exec
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-11-26 16:27:56 +00:00
|
|
|
description = "switch user and group id and exec";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "su-exec";
|
2016-11-26 16:27:56 +00:00
|
|
|
homepage = "https://github.com/ncopa/su-exec";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|