2022-01-16 17:54:58 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch }:
|
2010-10-08 10:11:57 +01:00
|
|
|
|
2015-04-02 17:21:53 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.99";
|
|
|
|
pname = "barcode";
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
|
2014-08-31 16:32:21 +01:00
|
|
|
sha256 = "1indapql5fjz0bysyc88cmc54y8phqrbi7c76p71fgjp45jcyzp8";
|
2010-10-08 10:11:57 +01: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 10:11:57 +01:00
|
|
|
|
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 10:11:57 +01:00
|
|
|
description = "GNU barcode generator";
|
2015-04-02 17:21:53 +01:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2018-03-13 22:00:52 +00:00
|
|
|
platforms = platforms.linux; # Maybe other non-darwin Unix
|
2018-12-01 18:22:13 +00:00
|
|
|
downloadPage = "https://ftp.gnu.org/gnu/barcode/";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.gnu.org/software/barcode/";
|
2018-07-22 16:38:28 +01:00
|
|
|
license = licenses.gpl3;
|
2010-10-08 10:11:57 +01:00
|
|
|
};
|
2015-04-02 17:21:53 +01:00
|
|
|
}
|