2019-03-03 01:45:04 +00:00
|
|
|
{ stdenv, fetchurl, scons, pkgconfig, which, makeWrapper, python3
|
|
|
|
, libraw1394, libconfig, libavc1394, libiec61883, libxmlxx3
|
2018-12-15 20:40:26 +00:00
|
|
|
, glibmm
|
2019-06-16 20:59:06 +01:00
|
|
|
, dbus, dbus_cplusplus
|
2015-04-26 04:14:28 +01:00
|
|
|
}:
|
|
|
|
|
2019-03-03 01:45:04 +00:00
|
|
|
let
|
|
|
|
inherit (python3.pkgs) pyqt5 dbus-python;
|
|
|
|
python = python3.withPackages (pkgs: with pkgs; [ pyqt5 dbus-python ]);
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "ffado";
|
|
|
|
version = "2.4.1";
|
2012-04-05 22:53:42 +01:00
|
|
|
|
2012-09-30 20:23:28 +01:00
|
|
|
src = fetchurl {
|
2015-04-26 04:14:28 +01:00
|
|
|
url = "http://www.ffado.org/files/libffado-${version}.tgz";
|
2019-03-03 01:45:04 +00:00
|
|
|
sha256 = "0byr3kv58d1ryy60vr69fd868zlfkvl2gq9hl94dqdn485l9pq9y";
|
2012-04-05 22:53:42 +01:00
|
|
|
};
|
|
|
|
|
2019-03-03 01:45:04 +00:00
|
|
|
patches = [
|
|
|
|
# fix installing metainfo file
|
|
|
|
./fix-build.patch
|
|
|
|
];
|
|
|
|
|
2018-12-15 20:40:26 +00:00
|
|
|
outputs = [ "out" "bin" "dev" ];
|
|
|
|
|
2019-03-03 01:45:04 +00:00
|
|
|
nativeBuildInputs = [ scons pkgconfig which makeWrapper python pyqt5 ];
|
2012-04-05 22:53:42 +01:00
|
|
|
|
2018-12-15 20:40:26 +00:00
|
|
|
prefixKey = "PREFIX=";
|
|
|
|
sconsFlags = [
|
|
|
|
"DEBUG=False"
|
|
|
|
"ENABLE_ALL=True"
|
|
|
|
"BUILD_TESTS=False"
|
|
|
|
"WILL_DEAL_WITH_XDG_MYSELF=True"
|
|
|
|
"BUILD_MIXER=True"
|
2019-03-03 01:45:04 +00:00
|
|
|
"UDEVDIR=${placeholder "out"}/lib/udev/rules.d"
|
|
|
|
"PYPKGDIR=${placeholder "out"}/${python3.sitePackages}"
|
|
|
|
"BINDIR=${placeholder "bin"}/bin"
|
|
|
|
"INCLUDEDIR=${placeholder "dev"}/include"
|
|
|
|
"PYTHON_INTERPRETER=${python.interpreter}"
|
2015-04-26 04:14:28 +01:00
|
|
|
];
|
2012-04-08 00:57:30 +01:00
|
|
|
|
2018-12-15 20:40:26 +00:00
|
|
|
buildInputs = [
|
2019-03-03 01:45:04 +00:00
|
|
|
libraw1394
|
|
|
|
libconfig
|
|
|
|
libavc1394
|
|
|
|
libiec61883
|
|
|
|
dbus
|
|
|
|
dbus_cplusplus
|
|
|
|
libxmlxx3
|
|
|
|
python
|
|
|
|
glibmm
|
2018-12-15 20:40:26 +00:00
|
|
|
];
|
2012-09-30 20:23:28 +01:00
|
|
|
|
2019-03-03 01:45:04 +00:00
|
|
|
enableParallelBuilding = true;
|
2012-04-05 22:53:42 +01:00
|
|
|
|
2019-06-18 01:37:27 +01:00
|
|
|
postInstall = ''
|
|
|
|
# prevent build tools from leaking into closure
|
|
|
|
echo 'See `nix-store --query --tree ${placeholder "out"}`.' > $out/lib/libffado/static_info.txt
|
|
|
|
'';
|
|
|
|
|
2012-04-05 22:53:42 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.ffado.org;
|
2012-04-08 00:57:30 +01:00
|
|
|
description = "FireWire audio drivers";
|
2012-04-05 22:53:42 +01:00
|
|
|
license = licenses.gpl3;
|
2019-01-26 10:01:09 +00:00
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
2014-03-16 11:08:26 +00:00
|
|
|
platforms = platforms.linux;
|
2012-04-05 22:53:42 +01:00
|
|
|
};
|
|
|
|
}
|