lol
at 24.05-pre 25 lines 773 B view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "cabextract"; 5 version = "1.11"; 6 7 src = fetchurl { 8 url = "https://www.cabextract.org.uk/cabextract-${version}.tar.gz"; 9 sha256 = "sha256-tVRtsRVeTHGP89SyeFc2BPMN1kw8W/1GV80Im4I6OsY="; 10 }; 11 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 ]; 17 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 }; 25}