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