mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-05 20:19:16 +03:00
parent
61f45c3352
commit
0a5599cda2
@ -7,7 +7,6 @@
|
||||
dbus_cplusplus,
|
||||
desktop-file-utils,
|
||||
fetchurl,
|
||||
fetchpatch,
|
||||
glibmm,
|
||||
libavc1394,
|
||||
libconfig,
|
||||
@ -31,7 +30,7 @@ let
|
||||
in
|
||||
mkDerivation rec {
|
||||
pname = "ffado";
|
||||
version = "2.4.8";
|
||||
version = "2.4.9";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
@ -41,7 +40,7 @@ mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.ffado.org/files/libffado-${version}.tgz";
|
||||
hash = "sha256-0iFXYyGctOoHCdc232Ud80/wV81tiS7ItiS0uLKyq2Y=";
|
||||
hash = "sha256-xELFL60Ryv1VE7tOhGyFHxAchIT4karFRe0ZDo/U0Q8=";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
@ -49,20 +48,7 @@ mkDerivation rec {
|
||||
--replace /lib/modules/ "/run/booted-system/kernel-modules/lib/modules/"
|
||||
'';
|
||||
|
||||
patches = [
|
||||
# fix installing metainfo file
|
||||
./fix-build.patch
|
||||
|
||||
(fetchpatch {
|
||||
name = "musl.patch";
|
||||
url = "http://subversion.ffado.org/changeset?format=diff&new=2846&old=2845";
|
||||
stripLen = 2;
|
||||
hash = "sha256-iWeYnb5J69Uvo1lftc7MWg7WrLa+CGZyOwJPOe8/PKg=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
desktop-file-utils
|
||||
(scons.override { python3Packages = python311.pkgs; })
|
||||
pkg-config
|
||||
which
|
||||
@ -76,7 +62,6 @@ mkDerivation rec {
|
||||
"DEBUG=False"
|
||||
"ENABLE_ALL=True"
|
||||
"BUILD_TESTS=True"
|
||||
"WILL_DEAL_WITH_XDG_MYSELF=True"
|
||||
"BUILD_MIXER=True"
|
||||
"UDEVDIR=${placeholder "out"}/lib/udev/rules.d"
|
||||
"PYPKGDIR=${placeholder "out"}/${python.sitePackages}"
|
||||
@ -105,13 +90,6 @@ mkDerivation rec {
|
||||
dontWrapQtApps = true;
|
||||
|
||||
postInstall = ''
|
||||
desktop="$bin/share/applications/ffado-mixer.desktop"
|
||||
install -DT -m 444 support/xdg/ffado.org-ffadomixer.desktop $desktop
|
||||
substituteInPlace "$desktop" \
|
||||
--replace Exec=ffado-mixer "Exec=$bin/bin/ffado-mixer" \
|
||||
--replace hi64-apps-ffado ffado-mixer
|
||||
install -DT -m 444 support/xdg/hi64-apps-ffado.png "$bin/share/icons/hicolor/64x64/apps/ffado-mixer.png"
|
||||
|
||||
# prevent build tools from leaking into closure
|
||||
echo 'See `nix-store --query --tree ${placeholder "out"}`.' > $out/lib/libffado/static_info.txt
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user