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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
805 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
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
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=";
};
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"
];
meta = with lib; {
homepage = "https://www.cabextract.org.uk/";
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";
};
}