barcode: reimplement using mkDerivation
This commit is contained in:
parent
931eaa341c
commit
2889b153c5
@ -1,42 +1,21 @@
|
|||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl }:
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "${pname}-${version}";
|
||||||
sourceInfo = rec {
|
version = "0.99";
|
||||||
version = "0.99";
|
pname = "barcode";
|
||||||
baseName="barcode";
|
src = fetchurl {
|
||||||
name="${baseName}-${version}";
|
url = "mirror://gnu/${pname}/${name}.tar.xz";
|
||||||
url="mirror://gnu/${baseName}/${name}.tar.xz";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = "1indapql5fjz0bysyc88cmc54y8phqrbi7c76p71fgjp45jcyzp8";
|
sha256 = "1indapql5fjz0bysyc88cmc54y8phqrbi7c76p71fgjp45jcyzp8";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
meta = with stdenv.lib; {
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
|
||||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "GNU barcode generator";
|
description = "GNU barcode generator";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = with maintainers; [ raskin ];
|
||||||
[
|
platforms = with platforms; allBut darwin;
|
||||||
raskin
|
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms; allBut darwin;
|
|
||||||
downloadPage = "http://ftp.gnu.org/gnu/barcode/";
|
downloadPage = "http://ftp.gnu.org/gnu/barcode/";
|
||||||
updateWalker = true;
|
updateWalker = true;
|
||||||
inherit version;
|
inherit version;
|
||||||
|
homepage = http://ftp.gnu.org/gnu/barcode/;
|
||||||
};
|
};
|
||||||
}) x
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user