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