nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 udevCheckHook, 7}: 8 9stdenv.mkDerivation { 10 pname = "M33-Linux"; 11 version = "0-unstable-2016-06-23"; 12 13 src = fetchFromGitHub { 14 owner = "donovan6000"; 15 repo = "M3D-Linux"; 16 rev = "5c1b90c13d260771dac970b49fdc9f840fee5f4a"; 17 sha256 = "1bvbclkyfcv23vxb4s1zssvygklks1nhp4iwi4v90c1fvyz0356f"; 18 }; 19 20 patches = [ 21 # Pull the `gcc-13` build fix pending upstream inclusion: 22 # https://github.com/donovan6000/M33-Linux/pull/6 23 (fetchpatch { 24 name = "gcc-13.patch"; 25 url = "https://github.com/donovan6000/M33-Linux/commit/272e4488ef05cfd95fcc952becfc0ac982306d0c.patch"; 26 hash = "sha256-ubdCwXFVljvOCzYrWVJgU6PY1j6Ei6aaclhXaGwZT2w="; 27 }) 28 ]; 29 30 nativeBuildInputs = [ 31 udevCheckHook 32 ]; 33 34 doInstallCheck = true; 35 36 installPhase = '' 37 install -Dm755 m33-linux $out/bin/m33-linux 38 install -Dm755 90-micro-3d-local.rules $out/lib/udev/rules.d/90-micro-3d-local.rules 39 ''; 40 41 meta = { 42 homepage = "https://github.com/donovan6000/M3D-Linux"; 43 description = "Linux program that can communicate with the Micro 3D printer"; 44 mainProgram = "m33-linux"; 45 license = lib.licenses.gpl2Only; 46 platforms = lib.platforms.linux; 47 maintainers = [ ]; 48 }; 49}