mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
doas: init at 6.0
Portable version of the OpenBSD `doas` command.
This commit is contained in:
parent
cfafd6f5a8
commit
4ca7f46863
31
pkgs/tools/security/doas/default.nix
Normal file
31
pkgs/tools/security/doas/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1753,6 +1753,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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user