nixpkgs/pkgs/applications/networking/cluster/terranix/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
778 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, jq, nix, makeWrapper }:
2020-09-26 18:15:57 +00:00
stdenv.mkDerivation rec {
pname = "terranix";
2022-07-11 04:22:14 +00:00
version = "2.5.4";
2020-09-26 18:15:57 +00:00
src = fetchFromGitHub {
owner = "mrVanDalo";
repo = "terranix";
rev = version;
2022-07-11 04:22:14 +00:00
sha256 = "sha256-zctvB0zpPY2C1HkMyEK6NFNuPVNGcU9b8gv9HafBd2A=";
2020-09-26 18:15:57 +00:00
};
nativeBuildInputs = [ makeWrapper ];
2020-09-26 18:15:57 +00:00
installPhase = ''
2021-11-07 08:43:34 +00:00
mkdir -p $out/{bin,core,modules,lib}
2022-01-07 14:22:40 +00:00
mv bin core modules lib share $out/
2021-11-07 08:43:34 +00:00
wrapProgram $out/bin/terranix-doc-json \
--prefix PATH : ${lib.makeBinPath [ jq nix ]}
2020-09-26 18:15:57 +00:00
'';
meta = with lib; {
2020-09-26 18:15:57 +00:00
description = "A NixOS like terraform-json generator";
homepage = "https://terranix.org";
license = licenses.gpl3;
platforms = platforms.unix;
2020-09-26 18:15:57 +00:00
maintainers = with maintainers; [ mrVanDalo ];
};
}