tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
viper4linux: init at unstable-2022-03-13
rewine
3 years ago
9fcfb140
a91c02d3
+63
2 changed files
expand all
collapse all
unified
split
pkgs
applications
audio
viper4linux
default.nix
top-level
all-packages.nix
+61
pkgs/applications/audio/viper4linux/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchFromGitHub
4
+
, pkg-config
5
+
, gst_all_1
6
+
, libviperfx
7
+
, makeWrapper
8
+
}:
9
+
let
10
+
gstPluginPath = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" (with gst_all_1; [ gstreamer gst-plugins-viperfx gst-plugins-base gst-plugins-good ]);
11
+
in
12
+
stdenv.mkDerivation rec {
13
+
pname = "viper4linux";
14
+
version = "unstable-2022-03-13";
15
+
16
+
src = fetchFromGitHub {
17
+
owner = "Audio4Linux";
18
+
repo = "Viper4Linux";
19
+
rev = "5da25644824f88cf0db24378d2c84770ba4f6816";
20
+
sha256 = "sha256-CJNVr/1ehJzX45mxunXcRAypBBGEBdswOzAVG2H+ayg=";
21
+
};
22
+
23
+
nativeBuildInputs = [ makeWrapper ];
24
+
25
+
buildInputs = [
26
+
gst_all_1.gstreamer
27
+
gst_all_1.gst-plugins-base
28
+
gst_all_1.gst-plugins-good
29
+
gst_all_1.gst-plugins-viperfx
30
+
libviperfx
31
+
];
32
+
33
+
dontBuild = true;
34
+
35
+
postPatch = ''
36
+
substituteInPlace viper --replace "/etc/viper4linux" "$out/etc/viper4linux"
37
+
'';
38
+
39
+
installPhase = ''
40
+
runHook preInstall
41
+
install -D viper -t $out/bin
42
+
mkdir -p $out/etc/viper4linux
43
+
cp -r viper4linux/* $out/etc/viper4linux
44
+
runHook postInstall
45
+
'';
46
+
47
+
postFixup = ''
48
+
wrapProgram "$out/bin/viper" \
49
+
--prefix PATH : $out/bin:${lib.makeBinPath [ gst_all_1.gstreamer ]} \
50
+
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : ${gstPluginPath} \
51
+
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libviperfx ]}
52
+
'';
53
+
54
+
meta = with lib; {
55
+
description = "An Adaptive Digital Sound Processor";
56
+
homepage = "https://github.com/Audio4Linux/Viper4Linux";
57
+
license = licenses.gpl3Plus;
58
+
platforms = [ "x86_64-linux" ];
59
+
maintainers = with maintainers; [ rewine ];
60
+
};
61
+
}
+2
pkgs/top-level/all-packages.nix
···
30220
30221
uvcdynctrl = callPackage ../os-specific/linux/uvcdynctrl { };
30222
0
0
30223
vkeybd = callPackage ../applications/audio/vkeybd {};
30224
30225
vlc = libsForQt5.callPackage ../applications/video/vlc {
···
30220
30221
uvcdynctrl = callPackage ../os-specific/linux/uvcdynctrl { };
30222
30223
+
viper4linux = callPackage ../applications/audio/viper4linux { };
30224
+
30225
vkeybd = callPackage ../applications/audio/vkeybd {};
30226
30227
vlc = libsForQt5.callPackage ../applications/video/vlc {