uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
54
pkgs/servers/pulseaudio/qpaeq.nix
Normal file
54
pkgs/servers/pulseaudio/qpaeq.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ mkDerivation
|
||||
, makeDesktopItem
|
||||
, python3
|
||||
, fetchurl
|
||||
, lib
|
||||
, pulseaudio
|
||||
}:
|
||||
|
||||
let
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "qpaeq";
|
||||
exec = "@out@/bin/qpaeq";
|
||||
icon = "audio-volume-high";
|
||||
desktopName = "qpaeq";
|
||||
genericName = "Audio equalizer";
|
||||
categories = [ "AudioVideo" "Audio" "Mixer" ];
|
||||
startupNotify = false;
|
||||
};
|
||||
in
|
||||
mkDerivation rec {
|
||||
pname = "qpaeq";
|
||||
inherit (pulseaudio) version src;
|
||||
|
||||
buildInputs = [
|
||||
((python3.withPackages (ps: with ps; [
|
||||
pyqt5
|
||||
dbus-python
|
||||
])))
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
dontConfigure = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D ./src/utils/qpaeq $out/bin/qpaeq
|
||||
install -D ${desktopItem}/share/applications/qpaeq.desktop $out/share/applications/qpaeq.desktop
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
sed "s|,sip|,PyQt5.sip|g" -i $out/bin/qpaeq
|
||||
wrapQtApp $out/bin/qpaeq
|
||||
sed "s|@out@|$out|g" -i $out/share/applications/qpaeq.desktop
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "An equalizer interface for pulseaudio's equalizer sinks";
|
||||
homepage = "http://www.pulseaudio.org/";
|
||||
license = lib.licenses.lgpl2Plus;
|
||||
maintainers = with lib.maintainers; [ lovek323 mkg20001 ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue