2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2006-06-01 23:25:40 +02:00
|
|
|
|
2010-09-27 13:19:36 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2021-08-12 21:47:47 +02:00
|
|
|
pname = "cabextract";
|
|
|
|
version = "1.9.1";
|
2012-10-05 22:06:19 +02:00
|
|
|
|
2006-06-01 23:25:40 +02:00
|
|
|
src = fetchurl {
|
2021-08-12 21:47:47 +02:00
|
|
|
url = "https://www.cabextract.org.uk/cabextract-${version}.tar.gz";
|
2019-03-05 18:52:41 +01:00
|
|
|
sha256 = "19qwhl2r8ip95q4vxzxg2kp4p125hjmc9762sns1dwwf7ikm7hmg";
|
2010-09-27 13:19:36 +02:00
|
|
|
};
|
|
|
|
|
2021-09-05 11:21:16 +02:00
|
|
|
# Let's assume that fnmatch works for cross-compilation, otherwise it gives an error:
|
|
|
|
# undefined reference to `rpl_fnmatch'.
|
|
|
|
configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
|
|
|
"ac_cv_func_fnmatch_works=yes"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.cabextract.org.uk/";
|
2010-09-27 13:19:36 +02:00
|
|
|
description = "Free Software for extracting Microsoft cabinet files";
|
2015-05-29 19:50:09 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2006-06-01 23:25:40 +02:00
|
|
|
};
|
|
|
|
}
|