3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/archivers/cabextract/default.nix

26 lines
775 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
2021-08-12 20:47:47 +01:00
pname = "cabextract";
version = "1.9.1";
2012-10-05 21:06:19 +01:00
src = fetchurl {
2021-08-12 20:47:47 +01:00
url = "https://www.cabextract.org.uk/cabextract-${version}.tar.gz";
2019-03-05 17:52:41 +00:00
sha256 = "19qwhl2r8ip95q4vxzxg2kp4p125hjmc9762sns1dwwf7ikm7hmg";
};
2021-09-05 10:21:16 +01: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"
];
meta = with lib; {
homepage = "https://www.cabextract.org.uk/";
description = "Free Software for extracting Microsoft cabinet files";
2015-05-29 18:50:09 +01:00
platforms = platforms.all;
license = licenses.gpl3;
maintainers = with maintainers; [ pSub ];
};
}