ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ca / cabextract / package.nix
blob6860b52267717ddab8e9c881d1348eec731d8256
1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
4   pname = "cabextract";
5   version = "1.11";
7   src = fetchurl {
8     url = "https://www.cabextract.org.uk/cabextract-${version}.tar.gz";
9     sha256 = "sha256-tVRtsRVeTHGP89SyeFc2BPMN1kw8W/1GV80Im4I6OsY=";
10   };
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"
16   ];
18   meta = with lib; {
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";
25   };