diff options
author | Evgeny Egorochkin <phreedom@yandex.ru> | 2016-01-16 00:31:48 +0200 |
---|---|---|
committer | Evgeny Egorochkin <phreedom@yandex.ru> | 2016-01-16 00:33:03 +0200 |
commit | 26f221d6b62b24d48f79f22e7f12bb6ff10580da (patch) | |
tree | 5606b819c9b402cb7614da610673d2ae8b622bb1 /pkgs/tools/virtualization | |
parent | df7139de360b0c152b72a4906a520884a84a37bf (diff) |
azure-cli: fix dependencies
Diffstat (limited to 'pkgs/tools/virtualization')
-rw-r--r-- | pkgs/tools/virtualization/azure-cli/default.nix | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/pkgs/tools/virtualization/azure-cli/default.nix b/pkgs/tools/virtualization/azure-cli/default.nix index 10a40e8208c54..049597256a40d 100644 --- a/pkgs/tools/virtualization/azure-cli/default.nix +++ b/pkgs/tools/virtualization/azure-cli/default.nix @@ -1,4 +1,4 @@ -{ recurseIntoAttrs, callPackage, nodejs +{ recurseIntoAttrs, callPackage, nodejs, makeWrapper }: let @@ -7,7 +7,22 @@ let inherit nodejs self; generated = callPackage ./node-packages.nix { inherit self; }; overrides = { - "azure-cli" = { passthru.nodePackages = self; }; + + "azure-cli" = + let + streamline-streams = self.by-version."streamline-streams"."0.1.5"; + streamline = self.by-version."streamline"."0.10.17"; + node-uuid = self.by-version."node-uuid"."1.2.0"; + in { + passthru.nodePackages = self; + + buildInputs = [ makeWrapper ]; + + postInstall = '' + wrapProgram "$out/bin/azure" \ + --set NODE_PATH "${streamline-streams}/lib/node_modules:${streamline}/lib/node_modules:${node-uuid}/lib/node_modules" + ''; + }; "easy-table" = { dontMakeSourcesWritable = 1; postUnpack = '' |