nixpkgs/pkgs/applications/editors/notepadqq/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.0 KiB
Nix
Raw Normal View History

{ mkDerivation
, lib
, fetchFromGitHub
, pkg-config
, which
, libuchardet
, qtbase
, qtsvg
, qttools
, qtwebengine
, qtwebsockets
}:
2016-10-02 13:59:01 +00:00
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=";
2016-10-02 13:59:01 +00:00
};
nativeBuildInputs = [
pkg-config
which
qttools
2016-10-02 13:59:01 +00:00
];
buildInputs = [
libuchardet
qtbase
qtsvg
qtwebengine
qtwebsockets
2016-10-02 13:59:01 +00:00
];
preConfigure = ''
export LRELEASE="lrelease"
'';
dontWrapQtApps = true;
preFixup = ''
wrapQtApp $out/bin/notepadqq
'';
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://notepadqq.com/";
2016-10-02 13:59:01 +00:00
description = "Notepad++-like editor for the Linux desktop";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = [ maintainers.rszibele ];
2023-11-27 01:17:53 +00:00
mainProgram = "notepadqq";
2016-10-02 13:59:01 +00:00
};
}