diff options
author | OPNA2608 <christoph.neidahl@gmail.com> | 2020-09-18 06:38:26 +0200 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-10-04 15:23:25 -0700 |
commit | d3a22b4bb4e70468d7bf084762fc82ac9eca1610 (patch) | |
tree | 3cff2076bbe395e0d152a40aa54c415bd0ce3493 | |
parent | a231baa23728be700fdb5f913b86a789be802677 (diff) | |
download | nixpkgs-d3a22b4bb4e70468d7bf084762fc82ac9eca1610.tar nixpkgs-d3a22b4bb4e70468d7bf084762fc82ac9eca1610.tar.gz nixpkgs-d3a22b4bb4e70468d7bf084762fc82ac9eca1610.tar.bz2 nixpkgs-d3a22b4bb4e70468d7bf084762fc82ac9eca1610.tar.lz nixpkgs-d3a22b4bb4e70468d7bf084762fc82ac9eca1610.tar.xz nixpkgs-d3a22b4bb4e70468d7bf084762fc82ac9eca1610.tar.zst nixpkgs-d3a22b4bb4e70468d7bf084762fc82ac9eca1610.zip |
lyrebird: init at 1.1.0
-rw-r--r-- | pkgs/applications/audio/lyrebird/default.nix | 63 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 65 insertions, 0 deletions
diff --git a/pkgs/applications/audio/lyrebird/default.nix b/pkgs/applications/audio/lyrebird/default.nix new file mode 100644 index 00000000000..b40dbfe65bf --- /dev/null +++ b/pkgs/applications/audio/lyrebird/default.nix @@ -0,0 +1,63 @@ +{ python3Packages +, lib +, fetchFromGitHub +, makeDesktopItem +, wrapGAppsHook +, gtk3 +, gobject-introspection +, sox +, pulseaudio +}: +let + desktopItem = makeDesktopItem { + name = "lyrebird"; + exec = "lyrebird"; + icon = "${placeholder "out"}/share/lyrebird/icon.png"; + desktopName = "Lyrebird"; + genericName = "Voice Changer"; + categories = "AudioVideo;Audio;"; + }; +in +python3Packages.buildPythonApplication rec { + pname = "lyrebird"; + version = "1.1.0"; + + format = "other"; + doCheck = false; + + src = fetchFromGitHub { + owner = "chxrlt"; + repo = "lyrebird"; + rev = "v${version}"; + sha256 = "0wmnww2wi8bb9m8jgc18n04gjia8pf9klmvij0w98xz11l6kxb13"; + }; + + propagatedBuildInputs = with python3Packages; [ toml pygobject3 ]; + + nativeBuildInputs = [ wrapGAppsHook ]; + + buildInputs = [ gtk3 gobject-introspection sox ]; + + dontWrapGApps = true; + makeWrapperArgs = [ + "--prefix 'PATH' ':' '${lib.makeBinPath [ sox pulseaudio ]}'" + "--prefix 'PYTHONPATH' ':' '${placeholder "out"}/share/lyrebird'" + "--run 'cd ${placeholder "out"}/share/lyrebird'" + ''"''${gappsWrapperArgs[@]}"'' + ]; + + installPhase = '' + mkdir -p $out/{bin,share/{applications,lyrebird}} + cp -at $out/share/lyrebird/ app icon.png + cp -at $out/share/applications/ ${desktopItem} + install -Dm755 app.py $out/bin/lyrebird + ''; + + meta = with lib; { + description = "Simple and powerful voice changer for Linux, written in GTK 3"; + homepage = "https://github.com/chxrlt/lyrebird"; + license = licenses.mit; + maintainers = with maintainers; [ OPNA2608 ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2b4682f5c55..6ee2f1c8bbd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21874,6 +21874,8 @@ in lynx = callPackage ../applications/networking/browsers/lynx { }; + lyrebird = callPackage ../applications/audio/lyrebird { }; + lyx = libsForQt5.callPackage ../applications/misc/lyx { }; mac = callPackage ../development/libraries/mac { }; |