nixpkgs/pkgs/by-name/m3/m33-linux/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch }:
2016-02-14 11:56:44 +00:00
stdenv.mkDerivation {
2021-08-12 21:00:21 +00:00
pname = "M33-Linux";
version = "unstable-2016-06-23";
2016-02-14 11:56:44 +00:00
src = fetchFromGitHub {
owner = "donovan6000";
repo = "M3D-Linux";
rev = "5c1b90c13d260771dac970b49fdc9f840fee5f4a";
sha256 = "1bvbclkyfcv23vxb4s1zssvygklks1nhp4iwi4v90c1fvyz0356f";
2016-02-14 11:56:44 +00:00
};
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=";
})
];
2016-02-14 11:56:44 +00:00
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
2016-02-14 11:56:44 +00:00
'';
meta = with lib; {
homepage = "https://github.com/donovan6000/M3D-Linux";
2016-02-14 11:56:44 +00:00
description = "Linux program that can communicate with the Micro 3D printer";
mainProgram = "m33-linux";
2024-05-26 12:42:05 +00:00
license = licenses.gpl2Only;
2016-02-14 11:56:44 +00:00
platforms = platforms.linux;
maintainers = with maintainers; [ abbradar ];
};
}