Skip to content

Commit

Permalink
mgmt: init at unstable-2022-10-24
Browse files Browse the repository at this point in the history
  • Loading branch information
urandom2 committed Dec 31, 2022
1 parent 9025e3d commit d8cee53
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
68 changes: 68 additions & 0 deletions pkgs/applications/system/mgmt/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{ augeas
, buildGoModule
, fetchFromGitHub
, gotools
, lib
, libvirt
, libxml2
, nex
, pkg-config
, ragel
}:
buildGoModule rec {
pname = "mgmt";
version = "unstable-2022-10-24";

src = fetchFromGitHub {
owner = "purpleidea";
repo = pname;
rev = "d8820fa1855668d9e0f7a7829d9dd0d122b2c5a9";
hash = "sha256-jurZvEtiaTjWeDkmCJDIFlTzR5EVglfoDxkFgOilo8s=";
};

postPatch = ''
for file in `find -name Makefile -type f`; do
substituteInPlace $file --replace "/usr/bin/env " ""
done
substituteInPlace lang/types/Makefile \
--replace "unset GOCACHE && " ""
patchShebangs misc/header.sh
'';

postConfigure = ''
make lang funcgen
'';

buildInputs = [
augeas
libvirt
libxml2
];

nativeBuildInputs = [
gotools
nex
pkg-config
ragel
];


ldflags = [
"-s"
"-w"
"-X main.program=${pname}"
"-X main.version=${version}"
];

subPackages = [ "." ];

vendorHash = "sha256-Dtqy4TILN+7JXiHKHDdjzRTsT8jZYG5sPudxhd8znXY=";

meta = with lib; {
description = "Next generation distributed, event-driven, parallel config management!";
homepage = "https://mgmtconfig.com";
license = licenses.gpl3Only;
maintainers = with maintainers; [ urandom ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,8 @@ with pkgs;

mnc = callPackage ../tools/misc/mnc { };

mgmt = callPackage ../applications/system/mgmt {};

mprocs = callPackage ../tools/misc/mprocs { };

nominatim = callPackage ../servers/nominatim { };
Expand Down

0 comments on commit d8cee53

Please sign in to comment.