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