tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
snapmaker-luban: init at 4.0.3
Simon Kämpe
4 years ago
74551fd1
355010ed
+90
2 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
snapmaker-luban
default.nix
top-level
all-packages.nix
+88
pkgs/applications/misc/snapmaker-luban/default.nix
···
1
1
+
{ lib, stdenv, autoPatchelfHook, makeDesktopItem, copyDesktopItems, wrapGAppsHook, fetchurl
2
2
+
, alsa-lib, at-spi2-atk, at-spi2-core, atk, cairo, cups
3
3
+
, gtk3, nss, glib, dbus, nspr, gdk-pixbuf
4
4
+
, libX11, libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext
5
5
+
, libXfixes, libXi, libXrandr, libXrender, libXtst, libxcb, pango
6
6
+
, gcc-unwrapped, udev
7
7
+
}:
8
8
+
9
9
+
stdenv.mkDerivation rec {
10
10
+
pname = "snapmaker-luban";
11
11
+
version = "4.0.3";
12
12
+
13
13
+
src = fetchurl {
14
14
+
url = "https://github.com/Snapmaker/Luban/releases/download/v${version}/snapmaker-luban-${version}-linux-x64.tar.gz";
15
15
+
sha256 = "13qk7ssfawjaa5p4mnml4ndzzsqs26qpi76hc9qaipi74ss3jih4";
16
16
+
};
17
17
+
18
18
+
nativeBuildInputs = [
19
19
+
autoPatchelfHook
20
20
+
wrapGAppsHook
21
21
+
copyDesktopItems
22
22
+
];
23
23
+
24
24
+
buildInputs = [
25
25
+
alsa-lib
26
26
+
at-spi2-atk
27
27
+
at-spi2-core
28
28
+
cairo
29
29
+
cups
30
30
+
gcc-unwrapped
31
31
+
gtk3
32
32
+
libXdamage
33
33
+
libX11
34
34
+
libXScrnSaver
35
35
+
libXtst
36
36
+
libxcb
37
37
+
nspr
38
38
+
nss
39
39
+
];
40
40
+
41
41
+
libPath = lib.makeLibraryPath [
42
42
+
stdenv.cc.cc alsa-lib atk at-spi2-atk at-spi2-core cairo cups
43
43
+
gdk-pixbuf glib gtk3 libX11 libXcomposite
44
44
+
libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender
45
45
+
libXtst nspr nss libxcb pango libXScrnSaver udev
46
46
+
];
47
47
+
48
48
+
dontWrapGApps = true;
49
49
+
50
50
+
installPhase = ''
51
51
+
runHook preInstall
52
52
+
53
53
+
mkdir -p $out/{bin,opt,share/pixmaps}/
54
54
+
mv * $out/opt/
55
55
+
56
56
+
patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \
57
57
+
$out/opt/snapmaker-luban
58
58
+
59
59
+
wrapProgram $out/opt/snapmaker-luban \
60
60
+
"''${gappsWrapperArgs[@]}" \
61
61
+
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
62
62
+
--prefix LD_LIBRARY_PATH : ${libPath}:$out/snapmaker-luban
63
63
+
64
64
+
ln -s $out/opt/snapmaker-luban $out/bin/snapmaker-luban
65
65
+
ln -s $out/opt/resources/app/app/resources/images/snap-luban-logo-64x64.png $out/share/pixmaps/snapmaker-luban.png
66
66
+
67
67
+
runHook postInstall
68
68
+
'';
69
69
+
70
70
+
desktopItems = [
71
71
+
(makeDesktopItem {
72
72
+
name = pname;
73
73
+
exec = "snapmaker-luban";
74
74
+
icon = "snapmaker-luban";
75
75
+
desktopName = "Snapmaker Luban";
76
76
+
genericName = meta.description;
77
77
+
categories = "Office;Printing;";
78
78
+
})
79
79
+
];
80
80
+
81
81
+
meta = with lib; {
82
82
+
description = "Snapmaker Luban is an easy-to-use 3-in-1 software tailor-made for Snapmaker machines";
83
83
+
homepage = "https://github.com/Snapmaker/Luban";
84
84
+
license = licenses.gpl3;
85
85
+
maintainers = [ maintainers.simonkampe ];
86
86
+
platforms = [ "x86_64-linux" ];
87
87
+
};
88
88
+
}
+2
pkgs/top-level/all-packages.nix
···
27993
27993
27994
27994
super-slicer-staging = (callPackage ../applications/misc/prusa-slicer/super-slicer.nix { }).staging;
27995
27995
27996
27996
+
snapmaker-luban = callPackage ../applications/misc/snapmaker-luban { };
27997
27997
+
27996
27998
robustirc-bridge = callPackage ../servers/irc/robustirc-bridge { };
27997
27999
27998
28000
skrooge = libsForQt5.callPackage ../applications/office/skrooge {};