2020-02-10 02:10:24 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, bison
|
|
|
|
, pam
|
|
|
|
}:
|
2017-11-07 20:43:06 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "doas";
|
2020-02-10 02:10:24 +00:00
|
|
|
version = "6.6.1";
|
2017-11-07 20:43:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Duncaen";
|
|
|
|
repo = "OpenDoas";
|
|
|
|
rev = "v${version}";
|
2020-02-10 02:10:24 +00:00
|
|
|
sha256 = "07kkc5729p654jrgfsc8zyhiwicgmq38yacmwfvay2b3gmy728zn";
|
2017-11-07 20:43:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# otherwise confuses ./configure
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '/\(chown\|chmod\)/d' bsd.prog.mk
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ bison pam ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Executes the given command as another user";
|
|
|
|
homepage = "https://github.com/Duncaen/OpenDoas";
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.linux;
|
2020-02-10 02:10:24 +00:00
|
|
|
maintainers = with maintainers; [ cole-h cstrahan ];
|
2017-11-07 20:43:06 +00:00
|
|
|
};
|
|
|
|
}
|