fcad0b0a5a
Some of these should be longDescriptions, but most others just shouldn't contain newlines. E.g. write description = "Bla"; and not description = '' Bla ''; This pollutes "nix-env -qa --description" output. svn path=/nixpkgs/trunk/; revision=14310
22 lines
566 B
Nix
22 lines
566 B
Nix
args : with args;
|
|
let localDefs = builderDefs.passthru.function {
|
|
src = /* put a fetchurl here */
|
|
fetchurl {
|
|
url = http://prdownloads.sourceforge.net/jocr/gocr-0.44.tar.gz;
|
|
sha256 = "0kvb7cbk6z5n4g0hhbwpdk2f3819yfamwsmkwanj99yhni6p5mr0";
|
|
};
|
|
|
|
buildInputs = [];
|
|
configureFlags = [];
|
|
};
|
|
in with localDefs;
|
|
stdenv.mkDerivation rec {
|
|
name = "gocr";
|
|
builder = writeScript (name + "-builder")
|
|
(textClosure localDefs [doConfigure doMakeInstall doForceShare doPropagate]);
|
|
meta = {
|
|
description = "GPL Optical Character Recognition";
|
|
inherit src;
|
|
};
|
|
}
|