2019-08-08 13:32:55 +01:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, pkgconfig, which, qtbase, qtsvg, qttools, qtwebkit }:
|
2016-10-02 14:59:01 +01:00
|
|
|
|
2019-08-08 13:32:55 +01:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "notepadqq";
|
2018-11-11 22:41:58 +00:00
|
|
|
version = "1.4.8";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "notepadqq";
|
|
|
|
repo = "notepadqq";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0lbv4s7ng31dkznzbkmp2cvkqglmfj6lv4mbg3r410fif2nrva7k";
|
2016-10-02 14:59:01 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2017-03-24 18:34:03 +00:00
|
|
|
pkgconfig which qttools
|
2016-10-02 14:59:01 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2017-03-24 18:34:03 +00:00
|
|
|
qtbase qtsvg qtwebkit
|
2016-10-02 14:59:01 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export LRELEASE="lrelease"
|
|
|
|
'';
|
|
|
|
|
2019-08-08 13:32:55 +01:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapQtApp $out/bin/notepadqq
|
|
|
|
'';
|
|
|
|
|
2018-11-11 22:41:58 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-08-08 13:32:55 +01:00
|
|
|
meta = with lib; {
|
2018-11-11 22:41:58 +00:00
|
|
|
homepage = https://notepadqq.com/;
|
2016-10-02 14:59:01 +01:00
|
|
|
description = "Notepad++-like editor for the Linux desktop";
|
2019-08-08 13:32:55 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.rszibele ];
|
2016-10-02 14:59:01 +01:00
|
|
|
};
|
|
|
|
}
|