2010-10-08 10:11:57 +01:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
2014-08-31 16:32:21 +01:00
|
|
|
version = "0.99";
|
2010-10-08 10:11:57 +01:00
|
|
|
baseName="barcode";
|
|
|
|
name="${baseName}-${version}";
|
2014-09-01 06:07:54 +01:00
|
|
|
url="mirror://gnu/${baseName}/${name}.tar.xz";
|
2010-10-08 10:11:57 +01:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
2014-08-31 16:32:21 +01:00
|
|
|
sha256 = "1indapql5fjz0bysyc88cmc54y8phqrbi7c76p71fgjp45jcyzp8";
|
2010-10-08 10:11:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "GNU barcode generator";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
2014-08-09 10:57:32 +01:00
|
|
|
platforms = with a.lib.platforms; allBut darwin;
|
2014-08-31 16:32:21 +01:00
|
|
|
downloadPage = "http://ftp.gnu.org/gnu/barcode/";
|
|
|
|
updateWalker = true;
|
|
|
|
inherit version;
|
2010-10-08 10:11:57 +01:00
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|