2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-18 13:19:15 +00:00
|
|
|
pname = "cabextract";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "1.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-18 13:19:15 +00:00
|
|
|
url = "https://www.cabextract.org.uk/cabextract-${version}.tar.gz";
|
2023-03-04 12:14:45 +00:00
|
|
|
sha256 = "sha256-tVRtsRVeTHGP89SyeFc2BPMN1kw8W/1GV80Im4I6OsY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00: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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.cabextract.org.uk/";
|
|
|
|
description = "Free Software for extracting Microsoft cabinet files";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "cabextract";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|