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:
Shea Levy 2013-04-01 10:51:22 -04:00
parent ce9abc8119
commit cf019ab91e

View File

@ -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 {