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