Install unstable.lmms instead

Seems to be fixed upstream.
This commit is contained in:
Henrik Lissner 2020-01-13 17:27:31 -05:00
parent 690a2c2852
commit 5b2f7caf87
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 3 additions and 47 deletions

View file

@ -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 <my/packages/lmms.nix> {})
# 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
];
}

View file

@ -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 ];
};
}