2021-01-21 18:00:13 +01:00
|
|
|
{ fetchFromGitHub, lib, stdenv, zlib, qtbase, cmake, fixDarwinDylibNames }:
|
2014-09-12 15:05:08 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-24 19:13:31 +02:00
|
|
|
pname = "quazip";
|
2021-12-07 07:50:24 +01:00
|
|
|
version = "1.2";
|
2014-09-12 15:05:08 +02:00
|
|
|
|
2019-04-24 19:13:31 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stachenov";
|
|
|
|
repo = pname;
|
2019-06-01 14:45:03 +02:00
|
|
|
rev = "v${version}";
|
2021-12-07 07:50:24 +01:00
|
|
|
sha256 = "sha256-fsEMmbatTB1s8JnUYE18/vj2FZ2b40zHoOlL2OVplLc=";
|
2014-09-12 15:05:08 +02:00
|
|
|
};
|
|
|
|
|
2017-02-25 16:44:01 +01:00
|
|
|
buildInputs = [ zlib qtbase ];
|
2019-06-01 14:45:03 +02:00
|
|
|
nativeBuildInputs = [ cmake ]
|
2021-01-21 18:00:13 +01:00
|
|
|
++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
2014-09-12 15:05:08 +02:00
|
|
|
|
2021-01-12 12:50:23 +01:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2014-09-14 17:53:12 +02:00
|
|
|
description = "Provides access to ZIP archives from Qt programs";
|
2019-05-19 09:41:15 +02:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://stachenov.github.io/quazip/"; # Migrated from http://quazip.sourceforge.net/
|
2019-05-19 09:41:15 +02:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2014-09-12 15:05:08 +02:00
|
|
|
};
|
|
|
|
}
|