diff options
Diffstat (limited to 'pkgs/by-name/nh')
-rw-r--r-- | pkgs/by-name/nh/nh/package.nix | 6 | ||||
-rw-r--r-- | pkgs/by-name/nh/nhost-cli/package.nix | 37 |
2 files changed, 40 insertions, 3 deletions
diff --git a/pkgs/by-name/nh/nh/package.nix b/pkgs/by-name/nh/nh/package.nix index 3d1480da73d2b..14c22003e64cc 100644 --- a/pkgs/by-name/nh/nh/package.nix +++ b/pkgs/by-name/nh/nh/package.nix @@ -10,7 +10,7 @@ , nix-output-monitor }: let - version = "3.5.13"; + version = "3.5.17"; runtimeDeps = [ nvd nix-output-monitor ]; in rustPlatform.buildRustPackage { @@ -21,7 +21,7 @@ rustPlatform.buildRustPackage { owner = "viperML"; repo = "nh"; rev = "refs/tags/v${version}"; - hash = "sha256-lTy5gmB3dJZJKag2uuuxXvZCAt/RhLnI0jbIicBJfCo="; + hash = "sha256-o4K6QHBjXrmcYkX9MIw9gZ+DHM3OaEVswswHRX9h8Is="; }; strictDeps = true; @@ -47,7 +47,7 @@ rustPlatform.buildRustPackage { --prefix PATH : ${lib.makeBinPath runtimeDeps} ''; - cargoHash = "sha256-X8+GmPFxvgeNxMuOacoCUCgdZ/+N4mwQFMUtvO1E998="; + cargoHash = "sha256-6Y5vpXEuHZXe9HKk6KomujlibzwtZJbtn6YgOqbmInk="; passthru.updateScript = nix-update-script { }; diff --git a/pkgs/by-name/nh/nhost-cli/package.nix b/pkgs/by-name/nh/nhost-cli/package.nix new file mode 100644 index 0000000000000..d3a88416983da --- /dev/null +++ b/pkgs/by-name/nh/nhost-cli/package.nix @@ -0,0 +1,37 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "nhost-cli"; + version = "1.18.3"; + + src = fetchFromGitHub { + owner = "nhost"; + repo = "cli"; + rev = "v${version}"; + hash = "sha256-TYi0Cth4GWEIT9QRUC4z3Uwnh4EmywY+XCOM5oJP+4g="; + }; + + vendorHash = null; + + ldflags = [ + "-s" + "-w" + "-X=main.Version=v${version}" + ]; + + postInstall = '' + mv $out/bin/cli $out/bin/nhost + ''; + + meta = { + description = "A tool for setting up a local development environment for Nhost"; + homepage = "https://github.com/nhost/cli"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ moraxyc ]; + mainProgram = "nhost"; + }; +} |