Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, lib 3, fetchFromGitHub 4, autoreconfHook 5, pkg-config 6, docSupport ? true 7, doxygen 8, libftdi1 9}: 10 11stdenv.mkDerivation rec { 12 pname = "libexsid"; 13 version = "2.1"; 14 15 src = fetchFromGitHub { 16 owner = "libsidplayfp"; 17 repo = "exsid-driver"; 18 rev = version; 19 sha256 = "1qbiri549fma8c72nmj3cpz3sn1vc256kfafnygkmkzg7wdmgi7r"; 20 }; 21 22 outputs = [ "out" ] 23 ++ lib.optional docSupport "doc"; 24 25 nativeBuildInputs = [ autoreconfHook pkg-config ] 26 ++ lib.optional docSupport doxygen; 27 28 buildInputs = [ libftdi1 ]; 29 30 enableParallelBuilding = true; 31 32 installTargets = [ "install" ] 33 ++ lib.optional docSupport "doc"; 34 35 postInstall = lib.optionalString docSupport '' 36 mkdir -p $doc/share/libexsid/doc 37 cp -r docs/html $doc/share/libexsid/doc/ 38 ''; 39 40 meta = with lib; { 41 description = "Driver for exSID USB"; 42 homepage = "http://hacks.slashdirt.org/hw/exsid/"; 43 license = licenses.gpl2Plus; 44 maintainers = with maintainers; [ OPNA2608 ]; 45 platforms = platforms.all; 46 }; 47}