nixpkgs/pkgs/tools/archivers/cabextract/default.nix

27 lines
805 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
2021-08-12 20:47:47 +01:00
pname = "cabextract";
2023-03-02 11:02:37 +00:00
version = "1.11";
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";
2023-03-02 11:02:37 +00:00
sha256 = "sha256-tVRtsRVeTHGP89SyeFc2BPMN1kw8W/1GV80Im4I6OsY=";
};
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 ];
2023-11-27 01:17:53 +00:00
mainProgram = "cabextract";
};
}