notepadqq: use qt5's mkDerivation

See #65399
This commit is contained in:
Dominik Xaver Hörl 2019-08-08 14:32:55 +02:00
parent 2c06560593
commit 6b1d73f5e6

View File

@ -1,9 +1,8 @@
{ stdenv, fetchFromGitHub, pkgconfig, which, qtbase, qtsvg, qttools, qtwebkit}: { mkDerivation, lib, fetchFromGitHub, pkgconfig, which, qtbase, qtsvg, qttools, qtwebkit }:
let mkDerivation rec {
pname = "notepadqq";
version = "1.4.8"; version = "1.4.8";
in stdenv.mkDerivation {
name = "notepadqq-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "notepadqq"; owner = "notepadqq";
repo = "notepadqq"; repo = "notepadqq";
@ -24,13 +23,19 @@ in stdenv.mkDerivation {
export LRELEASE="lrelease" export LRELEASE="lrelease"
''; '';
dontWrapQtApps = true;
preFixup = ''
wrapQtApp $out/bin/notepadqq
'';
enableParallelBuilding = true; enableParallelBuilding = true;
meta = { meta = with lib; {
homepage = https://notepadqq.com/; homepage = https://notepadqq.com/;
description = "Notepad++-like editor for the Linux desktop"; description = "Notepad++-like editor for the Linux desktop";
license = stdenv.lib.licenses.gpl3; license = licenses.gpl3;
platforms = stdenv.lib.platforms.linux; platforms = platforms.linux;
maintainers = with stdenv.lib.maintainers; [ rszibele ]; maintainers = [ maintainers.rszibele ];
}; };
} }