about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libgmpris/default.nix
blob: a7826fabd134b6e93bf20a416785237d41b8e9f7 (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
{ stdenv
, lib
, fetchurl
, pkg-config
, glib
, gobject-introspection
}:

stdenv.mkDerivation rec {
  pname = "libgmpris";
  version = "2.2.1-8";

  src = fetchurl {
    url = "https://www.sonarnerd.net/src/focal/src/${pname}_${version}.tar.gz";
    sha256 = "sha256-iyKNmg6sf+mxlY/4vt5lKdrKfJzkoCYU2j1O8uwk8K4=";
  };

  nativeBuildInputs = [ pkg-config gobject-introspection ];

  buildInputs = [ glib ];

  postInstall = ''
    mkdir -p $out/share/doc/${pname}
    cp ./AUTHORS $out/share/doc/${pname}
    cp ./README $out/share/doc/${pname}
  '';

  meta = with lib; {
    homepage = "https://www.sonarnerd.net/src/";
    description = "GMPRIS GDBus bindings GDBus bindings generated from the GMPRIS XML spec files";
    license = licenses.lgpl21;
    maintainers = with maintainers; [ lovesegfault ];
  };
}