nixpkgs/pkgs/tools/virtualization/azure-cli/default.nix

36 lines
1,014 B
Nix
Raw Normal View History

2016-01-15 23:31:48 +01:00
{ recurseIntoAttrs, callPackage, nodejs, makeWrapper
2016-01-15 02:09:29 +01:00
}:
let
self = (
callPackage ../../../top-level/node-packages.nix {
inherit nodejs self;
generated = callPackage ./node-packages.nix { inherit self; };
overrides = {
2016-01-15 23:31:48 +01:00
"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"
'';
};
2016-01-15 02:09:29 +01:00
"easy-table" = {
dontMakeSourcesWritable = 1;
postUnpack = ''
chmod -R 770 "$sourceRoot"
'';
};
};
});
in self.azure-cli