lyrebird: init at 1.1.0

authored by

OPNA2608 and committed by
Jon
d3a22b4b a231baa2

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