summary refs log tree commit diff
path: root/pkgs/applications/editors/notepadqq/default.nix
blob: ab79c3e780b29f6c517bc0d995e40b69033828aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, fetchFromGitHub, pkgconfig, which, qtbase, qtsvg, qttools, qtwebkit}:

let
  version = "1.4.8";
in stdenv.mkDerivation {
  name = "notepadqq-${version}";
  src = fetchFromGitHub {
    owner = "notepadqq";
    repo = "notepadqq";
    rev = "v${version}";
    sha256 = "0lbv4s7ng31dkznzbkmp2cvkqglmfj6lv4mbg3r410fif2nrva7k";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [
    pkgconfig which qttools
  ];

  buildInputs = [
    qtbase qtsvg qtwebkit
  ];

  preConfigure = ''
    export LRELEASE="lrelease"
  '';

  enableParallelBuilding = true;

  meta = {
    homepage = https://notepadqq.com/;
    description = "Notepad++-like editor for the Linux desktop";
    license = stdenv.lib.licenses.gpl3;
    platforms = stdenv.lib.platforms.linux;
    maintainers = with stdenv.lib.maintainers; [ rszibele ];
  };
}