From da28284b28a6c6de46bbec8073a17d1d5d8260af Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 8 Oct 2010 09:11:57 +0000 Subject: [PATCH] Adding missing files for barcode svn path=/nixpkgs/trunk/; revision=24174 --- pkgs/tools/graphics/barcode/default.nix | 47 +++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/tools/graphics/barcode/default.nix diff --git a/pkgs/tools/graphics/barcode/default.nix b/pkgs/tools/graphics/barcode/default.nix new file mode 100644 index 00000000000..946d18b8cc5 --- /dev/null +++ b/pkgs/tools/graphics/barcode/default.nix @@ -0,0 +1,47 @@ +x@{builderDefsPackage + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + version="0.98"; + baseName="barcode"; + name="${baseName}-${version}"; + # mirror://gnu/ doesn't work for this package + url="http://ftp.gnu.org/gnu/${baseName}/${name}.tar.gz"; + hash="0ddn17a6hz817bchgjxrjg76v64kzl5zlll8x73ply5rg69f2aa2"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + 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 + ]; + platforms = with a.lib.platforms; + all; + }; + passthru = { + updateInfo = { + downloadPage = "ftp://ftp.gnu.org/gnu/barcode/"; + }; + }; +}) x +