mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
Add git prerelease of aws-sdk nodePackage
Required modifying patchLatest to handle tarballs that don't create a 'package' directory Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
ce9abc8119
commit
cf019ab91e
@ -9,9 +9,12 @@ let self = {
|
|||||||
patchLatest = srcAttrs:
|
patchLatest = srcAttrs:
|
||||||
let src = fetchurl srcAttrs; in
|
let src = fetchurl srcAttrs; in
|
||||||
pkgs.runCommand src.name {} ''
|
pkgs.runCommand src.name {} ''
|
||||||
|
mkdir unpack
|
||||||
|
cd unpack
|
||||||
tar xf ${src}
|
tar xf ${src}
|
||||||
|
mv */ package
|
||||||
sed -i -e "s/: \"latest\"/: \"*\"/" package/package.json
|
sed -i -e "s/: \"latest\"/: \"*\"/" package/package.json
|
||||||
tar cf $out package
|
tar cf $out *
|
||||||
'';
|
'';
|
||||||
|
|
||||||
"abbrev" = self."abbrev-1";
|
"abbrev" = self."abbrev-1";
|
||||||
@ -96,6 +99,19 @@ let self = {
|
|||||||
|
|
||||||
"aws-sdk" = self."aws-sdk-*";
|
"aws-sdk" = self."aws-sdk-*";
|
||||||
|
|
||||||
|
"aws-sdk-git" = self.buildNodePackage rec {
|
||||||
|
name = "aws-sdk-0.9.8-pre7b687a0c262ac129fd6eaffeb02de09ee7e6a87c";
|
||||||
|
src = self.patchLatest {
|
||||||
|
url = "https://github.com/aws/aws-sdk-js/archive/7b687a0c262ac129fd6eaffeb02de09ee7e6a87c.tar.gz";
|
||||||
|
sha256 = "1pn43wxi3xz4kjyxf8j7zil5frhd1zpqja8szamgll2pxxnpnr3i";
|
||||||
|
name = "${name}.tgz";
|
||||||
|
};
|
||||||
|
deps = [
|
||||||
|
self."xml2js-0.2.4"
|
||||||
|
self."xmlbuilder"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
"aws-sdk-*" = self.buildNodePackage rec {
|
"aws-sdk-*" = self.buildNodePackage rec {
|
||||||
name = "aws-sdk-0.9.7-pre.8";
|
name = "aws-sdk-0.9.7-pre.8";
|
||||||
src = self.patchLatest {
|
src = self.patchLatest {
|
||||||
|
Loading…
Reference in New Issue
Block a user