Skip to content

Commit

Permalink
qview: use qt5's mkDerivation
Browse files Browse the repository at this point in the history
  • Loading branch information
worldofpeace committed Feb 24, 2020
1 parent 43bb5bf commit a8eba26
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions pkgs/applications/graphics/qview/default.nix
@@ -1,18 +1,27 @@
{stdenv, fetchFromGitHub, qmake}:
stdenv.mkDerivation rec {
{ mkDerivation, lib, fetchFromGitHub, qmake, qtbase }:

mkDerivation rec {
pname = "qview";
version = "3.0";

src = fetchFromGitHub {
owner = "jurplel";
repo = "qView";
rev = version;
sha256 = "15a91bs3wcqhgf76wzigbn10hayg628j84pq4j2vaxar94ak0vk7";
};

nativeBuildInputs = [ qmake ];

buildInputs = [
qtbase
];

patchPhase = ''
sed "s|/usr/|$out/|g" -i qView.pro
'';
meta = with stdenv.lib; {

meta = with lib; {
description = "Practical and minimal image viewer";
homepage = "https://interversehq.com/qview/";
license = licenses.gpl3;
Expand Down

0 comments on commit a8eba26

Please sign in to comment.