diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2021-11-09 15:07:13 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 15:07:13 -0300 |
commit | 77824da2196581a7b47dd353f60d1d9827ad1d7c (patch) | |
tree | 359f05f1c235d537050e9c155d3c2bcb3853e03c /pkgs/applications/networking/cluster | |
parent | e65ffda0ee45d1b29deed2b81c4dc451afa9dbb2 (diff) | |
parent | 6cc22b4d4a140e06402f81a18202bab44112b0c4 (diff) |
Merge pull request #144970 from mrVanDalo/feature/terranix-2.5
terranix: 2.4.0 -> 2.5.0
Diffstat (limited to 'pkgs/applications/networking/cluster')
-rw-r--r-- | pkgs/applications/networking/cluster/terranix/default.nix | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/pkgs/applications/networking/cluster/terranix/default.nix b/pkgs/applications/networking/cluster/terranix/default.nix index d06393718a4b1..4338dddb49f95 100644 --- a/pkgs/applications/networking/cluster/terranix/default.nix +++ b/pkgs/applications/networking/cluster/terranix/default.nix @@ -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 ]; }; |