zfs_unstable: 2.3.0-rc3 -> 2.3.0-rc4 (#365045)
[NixPkgs.git] / pkgs / applications / audio / deadbeef / plugins / playlist-manager.nix
blobf6113cb9e904f4a7e07a7247deb1aadb4151c039
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   pkg-config,
6   deadbeef,
7   gtk3,
8 }:
10 stdenv.mkDerivation {
11   pname = "deadbeef-playlist-manager-plugin";
12   version = "unstable-2021-05-02";
14   src = fetchFromGitHub {
15     owner = "kpcee";
16     repo = "deadbeef-playlist-manager";
17     rev = "b1393022b2d9ea0a19b845420146e0fc56cd9c0a";
18     sha256 = "sha256-dsKthlQ0EuX4VhO8K9VTyX3zN8ytzDUbSi/xSMB4xRw=";
19   };
21   nativeBuildInputs = [
22     pkg-config
23   ];
25   buildInputs = [
26     deadbeef
27     gtk3
28   ];
30   installPhase = ''
31     runHook preInstall
33     mkdir -p $out/lib/deadbeef/
34     cp *.so $out/lib/deadbeef/
36     runHook postInstall
37   '';
39   buildFlags = [
40     "CFLAGS=-I${deadbeef}/include/deadbeef"
41     "gtk3"
42   ];
44   meta = with lib; {
45     description = "Removes duplicate and vanished files from the current playlist";
46     homepage = "https://github.com/kpcee/deadbeef-playlist-manager";
47     license = licenses.gpl2Plus;
48     maintainers = [ maintainers.cmm ];
49     platforms = platforms.linux;
50   };