mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
57dcd38be4
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
60 lines
1.0 KiB
Nix
60 lines
1.0 KiB
Nix
{ mkDerivation
|
|
, lib
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, which
|
|
, libuchardet
|
|
, qtbase
|
|
, qtsvg
|
|
, qttools
|
|
, qtwebengine
|
|
, qtwebsockets
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "notepadqq";
|
|
# shipping a beta build as there's no proper release which supports qtwebengine
|
|
version = "2.0.0-beta";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "notepadqq";
|
|
repo = "notepadqq";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-XA9Ay9kJApY+bDeOf0iPv+BWYFuTmIuqsLEPgRTCZCE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
which
|
|
qttools
|
|
];
|
|
|
|
buildInputs = [
|
|
libuchardet
|
|
qtbase
|
|
qtsvg
|
|
qtwebengine
|
|
qtwebsockets
|
|
];
|
|
|
|
preConfigure = ''
|
|
export LRELEASE="lrelease"
|
|
'';
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
preFixup = ''
|
|
wrapQtApp $out/bin/notepadqq
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://notepadqq.com/";
|
|
description = "Notepad++-like editor for the Linux desktop";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.rszibele ];
|
|
};
|
|
}
|