diff options
author | Michael Livshin <repo@cmm.kakpryg.net> | 2022-06-29 01:20:08 +0300 |
---|---|---|
committer | Michael Livshin <repo@cmm.kakpryg.net> | 2022-06-29 19:17:53 +0300 |
commit | dd52d403671974d1a89e1b723a593c91528e2995 (patch) | |
tree | f6bce875d98528a0a91ab6169dd5da9e7a3a5b21 /pkgs/applications/audio/deadbeef/plugins | |
parent | 5bec894dc12d68a95f764009c7187c057601e58e (diff) |
deadbeefPlugins.playlist-manager: init at unstable-2021-05-02
Diffstat (limited to 'pkgs/applications/audio/deadbeef/plugins')
-rw-r--r-- | pkgs/applications/audio/deadbeef/plugins/playlist-manager.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/applications/audio/deadbeef/plugins/playlist-manager.nix b/pkgs/applications/audio/deadbeef/plugins/playlist-manager.nix new file mode 100644 index 0000000000000..cf82697988941 --- /dev/null +++ b/pkgs/applications/audio/deadbeef/plugins/playlist-manager.nix @@ -0,0 +1,50 @@ +{ lib +, stdenv +, fetchFromGitHub +, pkg-config +, deadbeef +, gtk3 +}: + +stdenv.mkDerivation { + pname = "deadbeef-playlist-manager-plugin"; + version = "unstable-2021-05-02"; + + src = fetchFromGitHub { + owner = "kpcee"; + repo = "deadbeef-playlist-manager"; + rev = "b1393022b2d9ea0a19b845420146e0fc56cd9c0a"; + sha256 = "sha256-dsKthlQ0EuX4VhO8K9VTyX3zN8ytzDUbSi/xSMB4xRw="; + }; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + deadbeef + gtk3 + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/lib/deadbeef/ + cp *.so $out/lib/deadbeef/ + + runHook postInstall + ''; + + buildFlags = [ + "CFLAGS=-I${deadbeef}/include/deadbeef" + "gtk3" + ]; + + meta = with lib; { + description = "Removes duplicate and vanished files from the current playlist"; + homepage = "https://github.com/kpcee/deadbeef-playlist-manager"; + license = licenses.gpl2Plus; + maintainers = [ maintainers.cmm ]; + platforms = platforms.linux; + }; +} |