nixpkgs/pkgs/by-name/ju/juju/package.nix

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

44 lines
1.0 KiB
Nix
Raw Normal View History

2024-05-19 13:27:22 +00:00
{ lib, fetchFromGitHub, buildGoModule, installShellFiles, testers, juju }:
2021-07-05 15:36:52 +00:00
buildGoModule rec {
pname = "juju";
2024-11-01 10:29:34 +00:00
version = "3.5.4";
2021-07-05 15:36:52 +00:00
src = fetchFromGitHub {
owner = "juju";
repo = "juju";
2024-05-19 13:27:22 +00:00
rev = "v${version}";
2024-11-01 10:29:34 +00:00
hash = "sha256-0vLZfnbLnGESYtdX9QYJhlglIc5UCTwfYnjtKNn92Pc=";
2021-07-05 15:36:52 +00:00
};
2024-11-01 10:29:34 +00:00
vendorHash = "sha256-xc+v34GLQ+2nKNJhMX020utObpganRIWjtwOHr5M2dY=";
2021-07-05 15:36:52 +00:00
2022-06-06 18:24:28 +00:00
subPackages = [
"cmd/juju"
];
2024-05-19 13:27:22 +00:00
nativeBuildInputs = [ installShellFiles ];
# Disable tests because it attempts to use a mongodb instance
doCheck = false;
postInstall = ''
for file in etc/bash_completion.d/*; do
installShellCompletion --bash "$file"
done
'';
passthru.tests.version = testers.testVersion {
package = juju;
command = "HOME=\"$(mktemp -d)\" juju --version";
};
2021-07-05 15:36:52 +00:00
meta = with lib; {
description = "Open source modelling tool for operating software in the cloud";
homepage = "https://juju.is";
license = licenses.mit;
maintainers = with maintainers; [ citadelcore ];
2023-11-27 01:17:53 +00:00
mainProgram = "juju";
2021-07-05 15:36:52 +00:00
};
}