3
0
Fork 0
forked from mirrors/nixpkgs

wring: use node2nix generated package

This commit is contained in:
Sander van der Burg 2016-09-01 20:50:08 +00:00
parent 7c71a897dd
commit 8bedff0e92
5 changed files with 2 additions and 53 deletions

View file

@ -31,7 +31,7 @@ nodePackages // {
'';
});
wring = nodePackages.phantomjs.override (oldAttrs: {
wring = nodePackages.wring.override (oldAttrs: {
buildInputs = oldAttrs.buildInputs ++ [ pkgs.phantomjs2 ];
});

View file

@ -1,26 +0,0 @@
{ stdenv, callPackage, makeWrapper, nodejs, phantomjs2 }:
let
self = (
callPackage ../../../top-level/node-packages.nix {
generated = callPackage ./node-packages.nix { inherit self; };
overrides = {
"wring" = {
buildInputs = [ makeWrapper phantomjs2 ];
postInstall = ''
wrapProgram "$out/bin/wring" \
--prefix PATH : ${phantomjs2}/bin
'';
meta = with stdenv.lib; {
description = "Command-line tool for extracting content from webpages using CSS Selectors, XPath, and JS expressions";
homepage = https://github.com/osener/wring;
license = licenses.mit;
platforms = platforms.darwin ++ platforms.linux;
maintainers = [ maintainers.osener ];
};
};
};
});
in self.wring

View file

@ -1 +0,0 @@
[ "wring" ]

View file

@ -1,24 +0,0 @@
{ self, fetchurl, fetchgit ? null, lib }:
{
by-spec."wring"."*" =
self.by-version."wring"."1.0.0";
by-version."wring"."1.0.0" = self.buildNodePackage {
name = "wring-1.0.0";
version = "1.0.0";
bin = true;
src = fetchurl {
url = "http://registry.npmjs.org/wring/-/wring-1.0.0.tgz";
name = "wring-1.0.0.tgz";
sha1 = "3d8ebe894545bf0b42946fdc84c61e37ae657ce1";
};
deps = {
};
optionalDependencies = {
};
peerDependencies = [];
os = [ ];
cpu = [ ];
};
"wring" = self.by-version."wring"."1.0.0";
}

View file

@ -4115,7 +4115,7 @@ in
wml = callPackage ../development/web/wml { };
wring = callPackage ../tools/text/wring { };
wring = nodePackages.wring;
wrk = callPackage ../tools/networking/wrk { };