1{ lib, stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation {
4 pname = "M33-Linux";
5 version = "unstable-2016-06-23";
6
7 src = fetchFromGitHub {
8 owner = "donovan6000";
9 repo = "M3D-Linux";
10 rev = "5c1b90c13d260771dac970b49fdc9f840fee5f4a";
11 sha256 = "1bvbclkyfcv23vxb4s1zssvygklks1nhp4iwi4v90c1fvyz0356f";
12 };
13
14 installPhase = ''
15 install -Dm755 m33-linux $out/bin/m33-linux
16 install -Dm755 90-micro-3d-local.rules $out/lib/udev/rules.d/90-micro-3d-local.rules
17 '';
18
19 meta = with lib; {
20 homepage = "https://github.com/donovan6000/M3D-Linux";
21 description = "A Linux program that can communicate with the Micro 3D printer";
22 license = licenses.gpl2;
23 platforms = platforms.linux;
24 maintainers = with maintainers; [ abbradar ];
25 };
26}