diff --git a/modules/daw.nix b/modules/daw.nix index 45104005..9af851b8 100644 --- a/modules/daw.nix +++ b/modules/daw.nix @@ -9,12 +9,10 @@ { my.packages = with pkgs; [ audacity # for recording and remastering audio - # lmms # for making music sunvox # for making music (where LMMS is overkill) - # Build our own LMMS because the built-in nixpkg is broken, due to a 'Could - # not find the Qt platform plugin "xcb" in ""' error on startup: - # https://github.com/NixOS/nixpkgs/issues/76074 - (callPackage {}) + # lmms on stable is broken due to 'Could not find the Qt platform plugin + # "xcb" in ""' error: https://github.com/NixOS/nixpkgs/issues/76074 + unstable.lmms # for making music ]; } diff --git a/packages/lmms.nix b/packages/lmms.nix deleted file mode 100644 index 14b16f62..00000000 --- a/packages/lmms.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ appimageTools, fetchurl, lib, gsettings-desktop-schemas, gtk3, makeDesktopItem }: - -let pname = "lmms"; - version = "1.2.1"; - desktopItem = makeDesktopItem { - name = pname; - desktopName = "LMMS"; - comment = "Cross-platform music production software"; - icon = "lmms"; - terminal = "false"; - exec = pname; - categories = "Audio"; - }; -in appimageTools.wrapType2 rec { - name = "${pname}-${version}"; - src = fetchurl { - url = "https://github.com/LMMS/lmms/releases/download/v${version}/${name}-linux-x86_64.AppImage"; - sha256 = "0aa63c3fv84wrny7vp7ycdvapp21j09kllzs1xybb19wdkdd863v"; - }; - - profile = '' - export LC_ALL=C.UTF-8 - export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS - ''; - - extraPkgs = p: (appimageTools.defaultFhsEnvArgs.multiPkgs p); - extraInstallCommands = '' - mv $out/bin/{${name},${pname}} - chmod +x $out/bin/${pname} - mkdir -p "$out/share/applications/" - cp "${desktopItem}"/share/applications/* "$out/share/applications/" - substituteInPlace $out/share/applications/*.desktop --subst-var out - ''; - - meta = with lib; { - description = "Cross-platform music production software"; - homepage = https://lmms.io; - license = licenses.gpl2Plus; - platforms = [ "x86_64-linux" "i686-linux" ]; - maintainers = with maintainers; [ hlissner ]; - }; -}