terranix: 2.4.0 -> 2.5.0
This commit is contained in:
@@ -1,26 +1,37 @@
|
||||
{ lib, stdenv, fetchFromGitHub, ... }:
|
||||
{ stdenv, lib, fetchFromGitHub, jq, nix, ... }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "terranix";
|
||||
version = "2.4.0";
|
||||
version = "2.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mrVanDalo";
|
||||
repo = "terranix";
|
||||
rev = version;
|
||||
sha256 = "sha256-3N4a5VhZqIgJW11w8oJKJ9T8mhfwEM33kEwV/zZkCs8=";
|
||||
sha256 = "sha256-HDiyJGgyDUoLnpL8N+wDm3cM/vEfYYc/p4N1kKH/kLk=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
mkdir -p $out/{bin,core,modules,lib}
|
||||
mv bin core modules lib $out/
|
||||
|
||||
mv $out/bin/terranix-doc-json $out/bin/.wrapper_terranix-doc-json
|
||||
|
||||
# manual wrapper because makeWrapper expectes executables
|
||||
wrapper=$out/bin/terranix-doc-json
|
||||
cat <<EOF>$wrapper
|
||||
#!/usr/bin/env bash
|
||||
export PATH=$PATH:${jq}/bin:${nix}/bin
|
||||
$out/bin/.wrapper_terranix-doc-json "\$@"
|
||||
EOF
|
||||
chmod +x $wrapper
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A NixOS like terraform-json generator";
|
||||
homepage = "https://terranix.org";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = with maintainers; [ mrVanDalo ];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user