Files

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

51 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
fetchFromGitHub,
buildGoModule,
installShellFiles,
testers,
juju,
}:
buildGoModule rec {
pname = "juju";
version = "3.6.10";
src = fetchFromGitHub {
owner = "juju";
repo = "juju";
rev = "v${version}";
hash = "sha256-J3AFH6kg+M6/8posiUaVP4biQpKPQ07Qp5BU3prAG/A=";
};
vendorHash = "sha256-zTavqjEH4maEMj+AuYMcjT289peVNIc0rysBnnMxFNU=";
subPackages = [
"cmd/juju"
];
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";
};
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 ];
mainProgram = "juju";
};
}