nixpkgs/pkgs/development/libraries/quazip/default.nix
ryan4729 0bedafd57c libsForQt5.quazip: fix darwin build (#61355)
* libsForQt5.quazip: fix darwin build

* libsForQt5.quazip: update license
2019-05-19 09:41:15 +02:00

27 lines
808 B
Nix

{ fetchFromGitHub, stdenv, zlib, qtbase, qmake, fixDarwinDylibNames }:
stdenv.mkDerivation rec {
pname = "quazip";
version = "0.7.6";
src = fetchFromGitHub {
owner = "stachenov";
repo = pname;
rev = version;
sha256 = "1p6khy8fn9bwp14l6wd3sniwwm5v216l8xncfb7a6psjzvq5ypy6";
};
buildInputs = [ zlib qtbase ];
nativeBuildInputs = [ qmake ]
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
qmakeFlags = [ "quazip" ]
++ stdenv.lib.optional stdenv.isDarwin [ "LIBS=-lz" ];
meta = with stdenv.lib; {
description = "Provides access to ZIP archives from Qt programs";
license = licenses.lgpl21Plus;
homepage = https://stachenov.github.io/quazip/; # Migrated from http://quazip.sourceforge.net/
platforms = with platforms; linux ++ darwin;
};
}