Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 52 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoconf, 6 automake, 7 libtool, 8 pkg-config, 9 libxml2, 10 deadbeef, 11 glib, 12 gtk3, 13}: 14 15stdenv.mkDerivation rec { 16 pname = "deadbeef-headerbar-gtk3-plugin"; 17 version = "1.2"; 18 19 src = fetchFromGitHub { 20 owner = "saivert"; 21 repo = "ddb_misc_headerbar_GTK3"; 22 rev = "v${version}"; 23 sha256 = "1v1schvnps7ypjqgcbqi74a45w8r2gbhrawz7filym22h1qr9wn0"; 24 }; 25 26 nativeBuildInputs = [ 27 autoconf 28 automake 29 libtool 30 pkg-config 31 libxml2 32 ]; 33 buildInputs = [ 34 deadbeef 35 glib 36 gtk3 37 ]; 38 39 # Choose correct installation path 40 # https://github.com/saivert/ddb_misc_headerbar_GTK3/commit/50ff75f76aa9d40761e352311670a894bfcd5cf6#r30319680 41 makeFlags = [ "pkglibdir=$(out)/lib/deadbeef" ]; 42 43 preConfigure = "./autogen.sh"; 44 45 meta = with lib; { 46 description = "Plug-in that adds GTK 3 header bar to the DeaDBeeF music player"; 47 homepage = "https://github.com/saivert/ddb_misc_headerbar_GTK3"; 48 license = licenses.gpl2Plus; 49 maintainers = [ maintainers.jtojnar ]; 50 platforms = platforms.linux; 51 }; 52}