1{
2 fetchFromGitHub,
3 lib,
4 stdenv,
5 zlib,
6 qtbase,
7 qt5compat ? null,
8 cmake,
9 fixDarwinDylibNames,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "quazip";
14 version = "1.5";
15
16 src = fetchFromGitHub {
17 owner = "stachenov";
18 repo = pname;
19 rev = "v${version}";
20 sha256 = "sha256-AOamvy2UgN8n7EZ8EidWkVzRICzEXMmvZsB18UwxIVo=";
21 };
22
23 buildInputs = [
24 zlib
25 qtbase
26 ];
27 propagatedBuildInputs = [ qt5compat ];
28 nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
29
30 dontWrapQtApps = true;
31
32 outputs = [
33 "out"
34 "dev"
35 ];
36
37 meta = with lib; {
38 description = "Provides access to ZIP archives from Qt programs";
39 license = licenses.lgpl21Plus;
40 homepage = "https://stachenov.github.io/quazip/"; # Migrated from http://quazip.sourceforge.net/
41 platforms = with platforms; linux ++ darwin;
42 };
43}