Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 989 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 deadbeef, 7 gtk3, 8}: 9 10stdenv.mkDerivation { 11 pname = "deadbeef-playlist-manager-plugin"; 12 version = "unstable-2021-05-02"; 13 14 src = fetchFromGitHub { 15 owner = "kpcee"; 16 repo = "deadbeef-playlist-manager"; 17 rev = "b1393022b2d9ea0a19b845420146e0fc56cd9c0a"; 18 sha256 = "sha256-dsKthlQ0EuX4VhO8K9VTyX3zN8ytzDUbSi/xSMB4xRw="; 19 }; 20 21 nativeBuildInputs = [ 22 pkg-config 23 ]; 24 25 buildInputs = [ 26 deadbeef 27 gtk3 28 ]; 29 30 installPhase = '' 31 runHook preInstall 32 33 mkdir -p $out/lib/deadbeef/ 34 cp *.so $out/lib/deadbeef/ 35 36 runHook postInstall 37 ''; 38 39 buildFlags = [ 40 "CFLAGS=-I${deadbeef}/include/deadbeef" 41 "gtk3" 42 ]; 43 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 }; 51}