cdist: init at 7.0.0
This commit is contained in:
parent
43441b9e7f
commit
2fd55ed4c9
2 changed files with 66 additions and 0 deletions
64
pkgs/tools/admin/cdist/default.nix
Normal file
64
pkgs/tools/admin/cdist/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchFromGitea
|
||||
, pythonImportsCheckHook
|
||||
, sphinxHook
|
||||
, sphinx-rtd-theme
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "cdist";
|
||||
version = "7.0.0";
|
||||
outputs = [ "out" "man" "doc" ];
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "code.ungleich.ch";
|
||||
owner = "ungleich-public";
|
||||
repo = "cdist";
|
||||
rev = version;
|
||||
hash = "sha256-lIx0RtGQJdY2e00azI9yS6TV+5pCegpKOOD0dQmgMqA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pythonImportsCheckHook
|
||||
sphinxHook
|
||||
sphinx-rtd-theme
|
||||
];
|
||||
|
||||
sphinxRoot = "docs/src";
|
||||
|
||||
# "make man" creates symlinks in docs/src needed by sphinxHook.
|
||||
postPatch = ''
|
||||
echo "VERSION = '$version'" > cdist/version.py
|
||||
|
||||
make man
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
export HOME=/tmp
|
||||
'';
|
||||
|
||||
# Test suite requires either non-chrooted environment or root.
|
||||
#
|
||||
# When "machine_type" explorer figures out that it is running inside
|
||||
# chroot, it assumes that it has enough privileges to escape it.
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "cdist" ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share
|
||||
mv docs/dist/man $out/share
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Minimalistic configuration management system";
|
||||
homepage = "https://www.sdi.st";
|
||||
changelog = "https://code.ungleich.ch/ungleich-public/cdist/src/tag/${version}/docs/changelog";
|
||||
|
||||
# Mostly. There are still couple types that are gpl3-only.
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ kaction ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -5945,6 +5945,8 @@ with pkgs;
|
|||
|
||||
cdi2iso = callPackage ../tools/cd-dvd/cdi2iso { };
|
||||
|
||||
cdist = python3Packages.callPackage ../tools/admin/cdist { };
|
||||
|
||||
cdimgtools = callPackage ../tools/cd-dvd/cdimgtools { };
|
||||
|
||||
cdpr = callPackage ../tools/networking/cdpr { };
|
||||
|
|
Loading…
Reference in a new issue