mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
zeal: update to 0.1.1 (close #7858)
This commit is contained in:
parent
12f0b61967
commit
22c8244605
@ -1,38 +1,26 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, qt5, libarchive }:
|
{ stdenv, fetchFromGitHub, pkgconfig, qt5, libarchive }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "20141123";
|
version = "0.1.1";
|
||||||
name = "zeal-${version}";
|
name = "zeal-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "zealdocs";
|
owner = "zealdocs";
|
||||||
repo = "zeal";
|
repo = "zeal";
|
||||||
rev = "76405f8387d6a82697faab9630c78f31417d8450";
|
rev = "v${version}";
|
||||||
sha256 = "1057py3j2flzxyiks031s0mwm9h82v033iqn5cq8sycmrb3ihj2s";
|
sha256 = "172wf50fq1l5p8hq1irvpwr7ljxkjaby71afrm82jz3ixl6dg2ii";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig qt5.base qt5.webkit libarchive ];
|
buildInputs = [ pkgconfig qt5.base qt5.webkit qt5.imageformats libarchive ];
|
||||||
|
|
||||||
patchPhase = ''
|
configurePhase = ''
|
||||||
substituteInPlace src/main.cpp \
|
qmake PREFIX=/
|
||||||
--replace /usr/share/pixmaps/zeal $out/share/pixmaps/zeal
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
qmake PREFIX=$out
|
|
||||||
make
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
make INSTALL_ROOT=$out install
|
make INSTALL_ROOT=$out install
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
|
||||||
mv $out/usr/bin $out/bin
|
|
||||||
mv $out/usr/share $out/share
|
|
||||||
rmdir $out/usr
|
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user