mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00
commit
10e977a281
@ -1,25 +1,38 @@
|
|||||||
{ lib, fetchFromGitHub, buildGoModule }:
|
{ lib, fetchFromGitHub, buildGoModule, installShellFiles, testers, juju }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "juju";
|
pname = "juju";
|
||||||
version = "3.3.0";
|
version = "3.3.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "juju";
|
owner = "juju";
|
||||||
repo = "juju";
|
repo = "juju";
|
||||||
rev = "juju-${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-8VSSTeN4a1zvMi4L4dR3q+kWKgYq8Jg1jDvFjEBD7jI=";
|
hash = "sha256-sp4KLRKII1oEmdbCHzs5fbE/68NbKrHE3bxO14byYFk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-3hZywUpJe6g8IujbK0hcp12S6OKswLj/YYJGuPG06Es=";
|
vendorHash = "sha256-a50W9V1xxmItHS2DZkkXYEZ7I6aJxDo1+IriOlMPDyw=";
|
||||||
|
|
||||||
# Disable tests because it attempts to use a mongodb instance
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
subPackages = [
|
subPackages = [
|
||||||
"cmd/juju"
|
"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; {
|
meta = with lib; {
|
||||||
description = "Open source modelling tool for operating software in the cloud";
|
description = "Open source modelling tool for operating software in the cloud";
|
||||||
homepage = "https://juju.is";
|
homepage = "https://juju.is";
|
||||||
|
Loading…
Reference in New Issue
Block a user