at 23.11-beta 38 lines 844 B view raw
1{ lib 2, stdenv 3, autoreconfHook 4, fetchFromGitHub 5, gtk3 6, libtool 7, pkg-config 8, guiSupport ? false 9}: 10 11stdenv.mkDerivation rec { 12 pname = "libzbc"; 13 version = "5.13.0"; 14 15 src = fetchFromGitHub { 16 owner = "westerndigitalcorporation"; 17 repo = "libzbc"; 18 rev = "v${version}"; 19 sha256 = "6xkA96bgQ2Ik1vEwkw7hwjMbjMSlopzv5ziTh60Mjx0="; 20 }; 21 22 nativeBuildInputs = [ 23 autoreconfHook 24 libtool 25 ] ++ lib.optionals guiSupport [ pkg-config ]; 26 27 buildInputs = lib.optionals guiSupport [ gtk3 ]; 28 29 configureFlags = lib.optional guiSupport "--enable-gui"; 30 31 meta = with lib; { 32 description = "ZBC device manipulation library"; 33 homepage = "https://github.com/westerndigitalcorporation/libzbc"; 34 maintainers = [ maintainers.fogti ]; 35 license = with licenses; [ bsd2 lgpl3Plus ]; 36 platforms = platforms.linux; 37 }; 38}