tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
lyrebird: init at 1.1.0
authored by
OPNA2608
and committed by
Jon
5 years ago
d3a22b4b
a231baa2
+65
2 changed files
expand all
collapse all
unified
split
pkgs
applications
audio
lyrebird
default.nix
top-level
all-packages.nix
+63
pkgs/applications/audio/lyrebird/default.nix
···
1
1
+
{ python3Packages
2
2
+
, lib
3
3
+
, fetchFromGitHub
4
4
+
, makeDesktopItem
5
5
+
, wrapGAppsHook
6
6
+
, gtk3
7
7
+
, gobject-introspection
8
8
+
, sox
9
9
+
, pulseaudio
10
10
+
}:
11
11
+
let
12
12
+
desktopItem = makeDesktopItem {
13
13
+
name = "lyrebird";
14
14
+
exec = "lyrebird";
15
15
+
icon = "${placeholder "out"}/share/lyrebird/icon.png";
16
16
+
desktopName = "Lyrebird";
17
17
+
genericName = "Voice Changer";
18
18
+
categories = "AudioVideo;Audio;";
19
19
+
};
20
20
+
in
21
21
+
python3Packages.buildPythonApplication rec {
22
22
+
pname = "lyrebird";
23
23
+
version = "1.1.0";
24
24
+
25
25
+
format = "other";
26
26
+
doCheck = false;
27
27
+
28
28
+
src = fetchFromGitHub {
29
29
+
owner = "chxrlt";
30
30
+
repo = "lyrebird";
31
31
+
rev = "v${version}";
32
32
+
sha256 = "0wmnww2wi8bb9m8jgc18n04gjia8pf9klmvij0w98xz11l6kxb13";
33
33
+
};
34
34
+
35
35
+
propagatedBuildInputs = with python3Packages; [ toml pygobject3 ];
36
36
+
37
37
+
nativeBuildInputs = [ wrapGAppsHook ];
38
38
+
39
39
+
buildInputs = [ gtk3 gobject-introspection sox ];
40
40
+
41
41
+
dontWrapGApps = true;
42
42
+
makeWrapperArgs = [
43
43
+
"--prefix 'PATH' ':' '${lib.makeBinPath [ sox pulseaudio ]}'"
44
44
+
"--prefix 'PYTHONPATH' ':' '${placeholder "out"}/share/lyrebird'"
45
45
+
"--run 'cd ${placeholder "out"}/share/lyrebird'"
46
46
+
''"''${gappsWrapperArgs[@]}"''
47
47
+
];
48
48
+
49
49
+
installPhase = ''
50
50
+
mkdir -p $out/{bin,share/{applications,lyrebird}}
51
51
+
cp -at $out/share/lyrebird/ app icon.png
52
52
+
cp -at $out/share/applications/ ${desktopItem}
53
53
+
install -Dm755 app.py $out/bin/lyrebird
54
54
+
'';
55
55
+
56
56
+
meta = with lib; {
57
57
+
description = "Simple and powerful voice changer for Linux, written in GTK 3";
58
58
+
homepage = "https://github.com/chxrlt/lyrebird";
59
59
+
license = licenses.mit;
60
60
+
maintainers = with maintainers; [ OPNA2608 ];
61
61
+
platforms = platforms.linux;
62
62
+
};
63
63
+
}
+2
pkgs/top-level/all-packages.nix
···
21874
21874
21875
21875
lynx = callPackage ../applications/networking/browsers/lynx { };
21876
21876
21877
21877
+
lyrebird = callPackage ../applications/audio/lyrebird { };
21878
21878
+
21877
21879
lyx = libsForQt5.callPackage ../applications/misc/lyx { };
21878
21880
21879
21881
mac = callPackage ../development/libraries/mac { };