14 version = "unstable-2022-10-24";
16 src = fetchFromGitHub {
19 rev = "d8820fa1855668d9e0f7a7829d9dd0d122b2c5a9";
20 hash = "sha256-jurZvEtiaTjWeDkmCJDIFlTzR5EVglfoDxkFgOilo8s=";
23 # patching must be done in prebuild, so it is shared with goModules
24 # see https://github.com/NixOS/nixpkgs/issues/208036
26 for file in `find -name Makefile -type f`; do
27 substituteInPlace $file --replace "/usr/bin/env " ""
30 substituteInPlace lang/types/Makefile \
31 --replace "unset GOCACHE && " ""
32 patchShebangs misc/header.sh
53 "-X main.program=${pname}"
54 "-X main.version=${version}"
57 subPackages = [ "." ];
59 vendorHash = "sha256-Dtqy4TILN+7JXiHKHDdjzRTsT8jZYG5sPudxhd8znXY=";
62 description = "Next generation distributed, event-driven, parallel config management!";
63 homepage = "https://mgmtconfig.com";
64 license = licenses.gpl3Only;
65 maintainers = with maintainers; [ urandom ];