mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
1.2 KiB
Nix
38 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "M33-Linux";
|
|
version = "unstable-2016-06-23";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "donovan6000";
|
|
repo = "M3D-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=";
|
|
})
|
|
];
|
|
|
|
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 = with lib; {
|
|
homepage = "https://github.com/donovan6000/M3D-Linux";
|
|
description = "Linux program that can communicate with the Micro 3D printer";
|
|
mainProgram = "m33-linux";
|
|
license = licenses.gpl2Only;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|