mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
0bedafd57c
* libsForQt5.quazip: fix darwin build * libsForQt5.quazip: update license
27 lines
808 B
Nix
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;
|
|
};
|
|
}
|