uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
41
pkgs/applications/misc/extract_url/default.nix
Normal file
41
pkgs/applications/misc/extract_url/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ stdenv, lib, fetchFromGitHub, makeWrapper, perlPackages
|
||||
, cursesSupport ? true
|
||||
, uriFindSupport ? true
|
||||
}:
|
||||
|
||||
let
|
||||
perlDeps =
|
||||
[ perlPackages.MIMETools perlPackages.HTMLParser ]
|
||||
++ lib.optional cursesSupport perlPackages.CursesUI
|
||||
++ lib.optional uriFindSupport perlPackages.URIFind;
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "extract_url";
|
||||
version = "1.6.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "m3m0ryh0l3";
|
||||
repo = "extracturl";
|
||||
rev = "v${version}";
|
||||
sha256 = "05589lp15jmcpbj4y9a3hmf6n2gsqrm4ybcyh3hd4j6pc7hmnhny";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ perlPackages.perl ] ++ perlDeps;
|
||||
|
||||
makeFlags = [ "prefix=$(out)" ];
|
||||
installFlags = [ "INSTALL=install" ];
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram "$out/bin/extract_url" \
|
||||
--set PERL5LIB "${perlPackages.makeFullPerlPath perlDeps}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.memoryhole.net/~kyle/extract_url/";
|
||||
description = "Extracts URLs from MIME messages or plain text";
|
||||
license = licenses.bsd2;
|
||||
maintainers = [ maintainers.qyliss ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue