2022-01-16 17:54:58 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch }:
|
2010-10-08 09:11:57 +00:00
|
|
|
|
2015-04-02 16:21:53 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.99";
|
|
|
|
pname = "barcode";
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
|
2014-08-31 15:32:21 +00:00
|
|
|
sha256 = "1indapql5fjz0bysyc88cmc54y8phqrbi7c76p71fgjp45jcyzp8";
|
2010-10-08 09:11:57 +00:00
|
|
|
};
|
2022-01-16 17:54:58 +00:00
|
|
|
patches = [
|
|
|
|
# Pull upstream patch for -fno-common toolchains.
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common.patch";
|
|
|
|
url = "http://git.savannah.gnu.org/cgit/barcode.git/patch/?id=4654f68706a459c9602d9932b56a56e8930f7d53";
|
|
|
|
sha256 = "15kclzcwlh0ymr7m48vc0m8z98q0wf4xbfcky4g1y8yvvpvvrfgc";
|
|
|
|
})
|
|
|
|
];
|
2010-10-08 09:11:57 +00:00
|
|
|
|
2023-01-02 15:47:33 +00:00
|
|
|
configureFlags = lib.optional stdenv.isDarwin "ac_cv_func_calloc_0_nonnull=yes";
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-10 22:38:40 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2010-10-08 09:11:57 +00:00
|
|
|
description = "GNU barcode generator";
|
2015-04-02 16:21:53 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2023-01-02 15:47:33 +00:00
|
|
|
platforms = platforms.unix;
|
2018-12-01 18:22:13 +00:00
|
|
|
downloadPage = "https://ftp.gnu.org/gnu/barcode/";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.gnu.org/software/barcode/";
|
2018-07-22 15:38:28 +00:00
|
|
|
license = licenses.gpl3;
|
2010-10-08 09:11:57 +00:00
|
|
|
};
|
2015-04-02 16:21:53 +00:00
|
|
|
}
|