3
0
Fork 0
forked from mirrors/nixpkgs

wring: init at 1.0.0

This commit is contained in:
Ozan Sener 2016-02-28 17:45:53 +02:00
parent ab746ec902
commit 3a6b06f1be
4 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ 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

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

View file

@ -0,0 +1,24 @@
{ 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

@ -3774,6 +3774,8 @@ let
wml = callPackage ../development/web/wml { };
wring = callPackage ../tools/text/wring { };
wrk = callPackage ../tools/networking/wrk { };
wv = callPackage ../tools/misc/wv { };