about summary refs log tree commit diff
path: root/pkgs/applications/audio/gst123/default.nix
blob: 65d925342be2c941f2bc103b0c4aeff38bb08ed1 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, wrapGAppsHook3
, gst_all_1
, gtk3
, ncurses
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "gst123";
  version = "0.4.1";

  src = fetchFromGitHub {
    owner = "swesterfeld";
    repo = "gst123";
    rev = finalAttrs.version;
    hash = "sha256-7qS7JJ7EY1uFGX3FxBxgH6LzK4XUoTPHR0QVwUWRz+g=";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
    wrapGAppsHook3
  ];

  buildInputs = [
    gtk3
    ncurses
  ] ++ (with gst_all_1; [
    gstreamer
    gst-plugins-base
    gst-plugins-good
    gst-plugins-bad
    gst-plugins-ugly
    gst-libav
  ]);

  enableParallelBuilding = true;

  meta = {
    broken = stdenv.isDarwin;
    description = "GStreamer based command line media player";
    homepage = "https://space.twc.de/~stefan/gst123.php";
    license = lib.licenses.lgpl2Plus;
    mainProgram = "gst123";
    maintainers = with lib.maintainers; [ swesterfeld ];
    inherit (ncurses.meta) platforms;
  };
})