Provide NixOS module option to enable the paperless exporter. (#242084)
[NixPkgs.git] / pkgs / by-name / nu / nulloy / package.nix
blob9355fcc1d24d9f1e079a2bdb4352fc7187ef8802
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   which,
6   pkg-config,
7   zip,
8   imagemagick,
9   qt5,
10   taglib,
11   gst_all_1,
14 stdenv.mkDerivation rec {
15   pname = "nulloy";
16   version = "0.9.9";
18   src = fetchFromGitHub {
19     owner = "nulloy";
20     repo = "nulloy";
21     rev = version;
22     hash = "sha256-vFg789vBV7ks+4YiWWl3u0/kQjzpAiX8dMfXU0hynDM=";
23   };
25   nativeBuildInputs = [
26     which # used by configure script
27     pkg-config
28     zip
29     imagemagick
30     qt5.qttools
31     qt5.wrapQtAppsHook
32   ];
34   buildInputs =
35     [
36       qt5.qtscript
37       qt5.qtsvg
38       taglib
39     ]
40     ++ (with gst_all_1; [
41       gstreamer
42       gst-plugins-base
43       gst-plugins-good
44       gst-plugins-bad
45       gst-plugins-ugly
46     ]);
48   prefixKey = "--prefix ";
50   enableParallelBuilding = true;
52   # FIXME: not added by gstreamer setup hook by default
53   preFixup = ''
54     qtWrapperArgs+=(
55       --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
56     )
57   '';
59   meta = with lib; {
60     description = "Music player with a waveform progress bar";
61     homepage = "https://nulloy.com";
62     changelog = "https://github.com/nulloy/nulloy/blob/${src.rev}/ChangeLog";
63     license = licenses.gpl3Only;
64     mainProgram = "nulloy";
65     maintainers = with maintainers; [ aleksana ];
66     platforms = platforms.all;
67     broken = stdenv.hostPlatform.isDarwin;
68   };