qview: use qt5's mkDerivation

This commit is contained in:
worldofpeace 2020-02-24 16:11:41 -05:00
parent 43bb5bffda
commit a8eba26d2c

View File

@ -1,18 +1,27 @@
{stdenv, fetchFromGitHub, qmake}: { mkDerivation, lib, fetchFromGitHub, qmake, qtbase }:
stdenv.mkDerivation rec {
mkDerivation rec {
pname = "qview"; pname = "qview";
version = "3.0"; version = "3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jurplel"; owner = "jurplel";
repo = "qView"; repo = "qView";
rev = version; rev = version;
sha256 = "15a91bs3wcqhgf76wzigbn10hayg628j84pq4j2vaxar94ak0vk7"; sha256 = "15a91bs3wcqhgf76wzigbn10hayg628j84pq4j2vaxar94ak0vk7";
}; };
nativeBuildInputs = [ qmake ]; nativeBuildInputs = [ qmake ];
buildInputs = [
qtbase
];
patchPhase = '' patchPhase = ''
sed "s|/usr/|$out/|g" -i qView.pro sed "s|/usr/|$out/|g" -i qView.pro
''; '';
meta = with stdenv.lib; {
meta = with lib; {
description = "Practical and minimal image viewer"; description = "Practical and minimal image viewer";
homepage = "https://interversehq.com/qview/"; homepage = "https://interversehq.com/qview/";
license = licenses.gpl3; license = licenses.gpl3;