10 gstPluginPath = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" (
20 stdenv.mkDerivation rec {
21 pname = "viper4linux";
22 version = "unstable-2022-03-13";
24 src = fetchFromGitHub {
25 owner = "Audio4Linux";
27 rev = "5da25644824f88cf0db24378d2c84770ba4f6816";
28 sha256 = "sha256-CJNVr/1ehJzX45mxunXcRAypBBGEBdswOzAVG2H+ayg=";
31 nativeBuildInputs = [ makeWrapper ];
35 gst_all_1.gst-plugins-base
36 gst_all_1.gst-plugins-good
37 gst_all_1.gst-plugins-viperfx
44 substituteInPlace viper --replace "/etc/viper4linux" "$out/etc/viper4linux"
49 install -D viper -t $out/bin
50 mkdir -p $out/etc/viper4linux
51 cp -r viper4linux/* $out/etc/viper4linux
56 wrapProgram "$out/bin/viper" \
57 --prefix PATH : $out/bin:${lib.makeBinPath [ gst_all_1.gstreamer ]} \
58 --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : ${gstPluginPath} \
59 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libviperfx ]}
63 description = "Adaptive Digital Sound Processor";
64 homepage = "https://github.com/Audio4Linux/Viper4Linux";
65 license = licenses.gpl3Plus;
66 platforms = [ "x86_64-linux" ];
67 maintainers = with maintainers; [ rewine ];