2021-01-11 10:54:33 +03:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2006-06-02 01:25:40 +04:00
|
|
|
|
2010-09-27 15:19:36 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2021-08-12 22:47:47 +03:00
|
|
|
pname = "cabextract";
|
2023-03-02 14:02:37 +03:00
|
|
|
version = "1.11";
|
2012-10-06 00:06:19 +04:00
|
|
|
|
2006-06-02 01:25:40 +04:00
|
|
|
src = fetchurl {
|
2021-08-12 22:47:47 +03:00
|
|
|
url = "https://www.cabextract.org.uk/cabextract-${version}.tar.gz";
|
2023-03-02 14:02:37 +03:00
|
|
|
sha256 = "sha256-tVRtsRVeTHGP89SyeFc2BPMN1kw8W/1GV80Im4I6OsY=";
|
2010-09-27 15:19:36 +04:00
|
|
|
};
|
|
|
|
|
2021-09-05 12:21:16 +03: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 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://www.cabextract.org.uk/";
|
2010-09-27 15:19:36 +04:00
|
|
|
description = "Free Software for extracting Microsoft cabinet files";
|
2015-05-29 20:50:09 +03:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2023-11-27 04:17:53 +03:00
|
|
|
mainProgram = "cabextract";
|
2006-06-02 01:25:40 +04:00
|
|
|
};
|
|
|
|
}
|