mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
4ed944dbb5
One of the dependencies of this crate, `num-bigint`, fails to compile on Rust versions >=1.73 due to a name conflict (see rust-num/num-bigint#219). This commit fixes the compilation failure by bumping the `gerber-types` dependency to 0.3, which includes a newer version of `num-bigint` that compiles with the latest `rustc`.
40 lines
908 B
Nix
40 lines
908 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, go-md2man
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "maker-panel";
|
|
version = "0.12.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "twitchyliquid64";
|
|
repo = "maker-panel";
|
|
rev = version;
|
|
sha256 = "0dlsy0c46781sb652kp80pvga7pzx6xla64axir92fcgg8k803bi";
|
|
};
|
|
|
|
cargoHash = "sha256-Ygya/9keRyIQyjrO6medtcXww9LMG3ne6I/8q35lJPo=";
|
|
|
|
cargoPatches = [ ./update-gerber-types-to-0.3.patch ];
|
|
|
|
nativeBuildInputs = [ go-md2man installShellFiles ];
|
|
|
|
postBuild = ''
|
|
go-md2man --in docs/spec-reference.md --out maker-panel.5
|
|
'';
|
|
|
|
postInstall = ''
|
|
installManPage maker-panel.5
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Make mechanical PCBs by combining shapes together";
|
|
homepage = "https://github.com/twitchyliquid64/maker-panel";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|