Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.2 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=";
};
patches = [
# Fix: chmod in the Makefile fails randomly
# Move it to preFixup instead
./fix-configure.patch
];
nativeBuildInputs = [
pkg-config
which
qttools
];
buildInputs = [
libuchardet
qtbase
qtsvg
qtwebengine
qtwebsockets
];
strictDeps = false; # breaks qmake
preConfigure = ''
export LRELEASE="lrelease"
'';
dontWrapQtApps = true;
preFixup = ''
chmod +x $out/bin/notepadqq
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 ];
mainProgram = "notepadqq";
};
}