blob: 1d186547c39356df6eae77a61603f2c14e0c9aff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
autoPatchelfHook,
dpkg,
fetchurl,
glib,
gtk3,
lib,
libsoup,
libthai,
openssl_1_1,
stdenv,
webkitgtk,
}: stdenv.mkDerivation rec {
pname = "modrinth-app";
version = "0.6.0";
srcs = [];
src = fetchurl {
url = "https://launcher-files.modrinth.com/versions/${version}/linux/${pname}_${version}_amd64.deb";
sha256 = "sha256-usaXxLp8IendOaiGFAXdEDnjW3lyyp0SSCGR1IG82m8=";
};
buildInputs = [
autoPatchelfHook
dpkg
glib
gtk3
libsoup
libthai
openssl_1_1
webkitgtk
];
unpackPhase = "true";
installPhase = ''
runHook preInstall
mkdir -p $out
dpkg -x $src $out
mv $out/usr/* $out
rm -rf $out/usr
chmod +x $out/bin/${pname}
runHook postInstall
'';
meta = with lib; {
description = "Modrinth minecraft launcher";
homepage = "https://modrinth.com/app";
license = licenses.gpl3Only;
maintainers = with maintainers; [ jptrzy ];
platforms = [ "x86_64-linux" ];
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
};
}
|