depot/third_party/nixpkgs/pkgs/applications/editors/notepadqq/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

41 lines
856 B
Nix

{ mkDerivation, lib, fetchFromGitHub, pkg-config, which, qtbase, qtsvg, qttools, qtwebkit }:
mkDerivation rec {
pname = "notepadqq";
version = "1.4.8";
src = fetchFromGitHub {
owner = "notepadqq";
repo = "notepadqq";
rev = "v${version}";
sha256 = "0lbv4s7ng31dkznzbkmp2cvkqglmfj6lv4mbg3r410fif2nrva7k";
};
nativeBuildInputs = [
pkg-config which qttools
];
buildInputs = [
qtbase qtsvg qtwebkit
];
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 ];
};
}