wring: init at 1.0.0
This commit is contained in:
parent
ab746ec902
commit
3a6b06f1be
26
pkgs/tools/text/wring/default.nix
Normal file
26
pkgs/tools/text/wring/default.nix
Normal 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
|
1
pkgs/tools/text/wring/node-packages.json
Normal file
1
pkgs/tools/text/wring/node-packages.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
[ "wring" ]
|
24
pkgs/tools/text/wring/node-packages.nix
Normal file
24
pkgs/tools/text/wring/node-packages.nix
Normal 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";
|
||||||
|
}
|
@ -3774,6 +3774,8 @@ let
|
|||||||
|
|
||||||
wml = callPackage ../development/web/wml { };
|
wml = callPackage ../development/web/wml { };
|
||||||
|
|
||||||
|
wring = callPackage ../tools/text/wring { };
|
||||||
|
|
||||||
wrk = callPackage ../tools/networking/wrk { };
|
wrk = callPackage ../tools/networking/wrk { };
|
||||||
|
|
||||||
wv = callPackage ../tools/misc/wv { };
|
wv = callPackage ../tools/misc/wv { };
|
||||||
|
Loading…
Reference in New Issue
Block a user