2019-05-19 07:41:15 +00:00
|
|
|
{ fetchFromGitHub, stdenv, zlib, qtbase, qmake, fixDarwinDylibNames }:
|
2014-09-12 13:05:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-24 17:13:31 +00:00
|
|
|
pname = "quazip";
|
|
|
|
version = "0.7.6";
|
2014-09-12 13:05:08 +00:00
|
|
|
|
2019-04-24 17:13:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stachenov";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1p6khy8fn9bwp14l6wd3sniwwm5v216l8xncfb7a6psjzvq5ypy6";
|
2014-09-12 13:05:08 +00:00
|
|
|
};
|
|
|
|
|
2017-02-25 15:44:01 +00:00
|
|
|
buildInputs = [ zlib qtbase ];
|
2019-05-19 07:41:15 +00:00
|
|
|
nativeBuildInputs = [ qmake ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
|
|
|
qmakeFlags = [ "quazip" ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin [ "LIBS=-lz" ];
|
2014-09-12 13:05:08 +00:00
|
|
|
|
2019-05-19 07:41:15 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-09-14 15:53:12 +00:00
|
|
|
description = "Provides access to ZIP archives from Qt programs";
|
2019-05-19 07:41:15 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2019-04-24 17:13:31 +00:00
|
|
|
homepage = https://stachenov.github.io/quazip/; # Migrated from http://quazip.sourceforge.net/
|
2019-05-19 07:41:15 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2014-09-12 13:05:08 +00:00
|
|
|
};
|
|
|
|
}
|