Merge pull request #31374 from cstrahan/doas

doas: init at 6.0
This commit is contained in:
Renaud 2017-11-10 20:46:25 +01:00 committed by GitHub
commit f17eec9de0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ stdenv, lib, fetchFromGitHub, bison, pam }:
stdenv.mkDerivation rec {
name = "doas-${version}";
version = "6.0";
src = fetchFromGitHub {
owner = "Duncaen";
repo = "OpenDoas";
rev = "v${version}";
sha256 = "1j50l3jvbgvg8vmp1nx6vrjxkbj5bvfh3m01bymzfn25lkwwhz1x";
};
# 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;
maintainers = with maintainers; [ cstrahan ];
};
}

View File

@ -1765,6 +1765,8 @@ with pkgs;
inherit (perlPackages) PerlMagick; inherit (perlPackages) PerlMagick;
}; };
doas = callPackage ../tools/security/doas { };
docbook2x = callPackage ../tools/typesetting/docbook2x { docbook2x = callPackage ../tools/typesetting/docbook2x {
inherit (perlPackages) XMLSAX XMLParser XMLNamespaceSupport; inherit (perlPackages) XMLSAX XMLParser XMLNamespaceSupport;
}; };