nixpkgs-suyu/pkgs/applications/misc/evopedia/default.nix

31 lines
814 B
Nix
Raw Normal View History

2017-04-02 19:41:43 +02:00
{ stdenv, fetchFromGitHub, bzip2, qt4, qmake4Hook, libX11 }:
stdenv.mkDerivation rec {
2015-04-05 17:08:52 +02:00
name = "evopedia-${version}";
version = "0.4.4";
2017-04-02 19:41:43 +02:00
src = fetchFromGitHub {
owner = "evopedia";
repo = "evopedia_qt";
rev = "v${version}";
sha256 = "0snp5qiywj306kfaywvkl7j34fivgxcb8dids1lzmbqq5xcpqqvc";
};
buildInputs = [ bzip2 qt4 libX11 ];
2016-04-17 01:31:33 +02:00
nativeBuildInputs = [ qmake4Hook ];
2017-12-01 17:24:53 +01:00
postInstall = ''
# Patch the `evopedia.desktop' file.
substituteInPlace $out/share/applications/evopedia.desktop \
--replace '/usr/bin/evopedia' $out/bin/evopedia
'';
2017-04-02 19:41:43 +02:00
meta = with stdenv.lib; {
description = "Offline Wikipedia Viewer";
homepage = http://www.evopedia.info;
2017-04-02 19:41:43 +02:00
license = licenses.gpl3Plus;
maintainers = [ maintainers.qknight ];
platforms = platforms.linux;
};
}