1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00
nixpkgs/pkgs/applications/misc/evopedia/default.nix
2017-12-01 17:28:55 +01:00

31 lines
814 B
Nix

{ stdenv, fetchFromGitHub, bzip2, qt4, qmake4Hook, libX11 }:
stdenv.mkDerivation rec {
name = "evopedia-${version}";
version = "0.4.4";
src = fetchFromGitHub {
owner = "evopedia";
repo = "evopedia_qt";
rev = "v${version}";
sha256 = "0snp5qiywj306kfaywvkl7j34fivgxcb8dids1lzmbqq5xcpqqvc";
};
buildInputs = [ bzip2 qt4 libX11 ];
nativeBuildInputs = [ qmake4Hook ];
postInstall = ''
# Patch the `evopedia.desktop' file.
substituteInPlace $out/share/applications/evopedia.desktop \
--replace '/usr/bin/evopedia' $out/bin/evopedia
'';
meta = with stdenv.lib; {
description = "Offline Wikipedia Viewer";
homepage = http://www.evopedia.info;
license = licenses.gpl3Plus;
maintainers = [ maintainers.qknight ];
platforms = platforms.linux;
};
}