2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, perl # for pod2man
|
|
|
|
, pkg-config
|
|
|
|
, readline
|
|
|
|
, libxml2
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "augeas";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.14.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hercules-team";
|
|
|
|
repo = "augeas";
|
|
|
|
rev = "release-${version}";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
hash = "sha256-U5tm3LDUeI/idHtL2Zy33BigkyvHunXPjToDC59G9VE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
# already have the submodules so don't fail when .git doesn't exist.
|
|
|
|
./bootstrap.diff
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
./bootstrap --gnulib-srcdir=.gnulib
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
perl
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ readline libxml2 ];
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
patchShebangs --build gnulib/tests tests
|
|
|
|
make -j $NIX_BUILD_CORES check
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Configuration editing tool";
|
2023-01-11 07:51:40 +00:00
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
homepage = "https://augeas.net/";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/hercules-team/augeas/releases/tag/release-${version}";
|
|
|
|
mainProgram = "augtool";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|