nixpkgs/pkgs/development/libraries/quazip/default.nix

27 lines
808 B
Nix
Raw Normal View History

{ fetchFromGitHub, stdenv, zlib, qtbase, qmake, fixDarwinDylibNames }:
2014-09-12 13:05:08 +00:00
stdenv.mkDerivation rec {
pname = "quazip";
version = "0.7.6";
2014-09-12 13:05:08 +00:00
src = fetchFromGitHub {
owner = "stachenov";
repo = pname;
rev = version;
sha256 = "1p6khy8fn9bwp14l6wd3sniwwm5v216l8xncfb7a6psjzvq5ypy6";
2014-09-12 13:05:08 +00:00
};
buildInputs = [ zlib qtbase ];
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
meta = with stdenv.lib; {
2014-09-14 15:53:12 +00:00
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;
2014-09-12 13:05:08 +00:00
};
}