blob: 0d08a36340b64a2a56a62874c3d5014f2fb328ee (
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
|
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
udevCheckHook,
}:
stdenv.mkDerivation {
pname = "M33-Linux";
version = "0-unstable-2016-06-23";
src = fetchFromGitHub {
owner = "donovan6000";
repo = "M33-Linux";
rev = "5c1b90c13d260771dac970b49fdc9f840fee5f4a";
sha256 = "1bvbclkyfcv23vxb4s1zssvygklks1nhp4iwi4v90c1fvyz0356f";
};
patches = [
# Pull the `gcc-13` build fix pending upstream inclusion:
# https://github.com/donovan6000/M33-Linux/pull/6
(fetchpatch {
name = "gcc-13.patch";
url = "https://github.com/donovan6000/M33-Linux/commit/272e4488ef05cfd95fcc952becfc0ac982306d0c.patch";
hash = "sha256-ubdCwXFVljvOCzYrWVJgU6PY1j6Ei6aaclhXaGwZT2w=";
})
];
nativeBuildInputs = [
udevCheckHook
];
doInstallCheck = true;
installPhase = ''
install -Dm755 m33-linux $out/bin/m33-linux
install -Dm755 90-micro-3d-local.rules $out/lib/udev/rules.d/90-micro-3d-local.rules
'';
meta = {
homepage = "https://github.com/donovan6000/M33-Linux";
description = "Linux program that can communicate with the Micro 3D printer";
mainProgram = "m33-linux";
license = lib.licenses.gpl2Only;
platforms = lib.platforms.linux;
maintainers = [ ];
};
}
|