1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "https://www.cabextract.org.uk/cabextract-${version}.tar.gz";
9 sha256 = "sha256-tVRtsRVeTHGP89SyeFc2BPMN1kw8W/1GV80Im4I6OsY=";
12 # Let's assume that fnmatch works for cross-compilation, otherwise it gives an error:
13 # undefined reference to `rpl_fnmatch'.
14 configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
15 "ac_cv_func_fnmatch_works=yes"
19 homepage = "https://www.cabextract.org.uk/";
20 description = "Free Software for extracting Microsoft cabinet files";
21 platforms = platforms.all;
22 license = licenses.gpl3;
23 maintainers = with maintainers; [ pSub ];
24 mainProgram = "cabextract";