lol
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 go-md2man,
6 installShellFiles,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "maker-panel";
11 version = "0.12.4";
12
13 src = fetchFromGitHub {
14 owner = "twitchyliquid64";
15 repo = "maker-panel";
16 rev = version;
17 sha256 = "0dlsy0c46781sb652kp80pvga7pzx6xla64axir92fcgg8k803bi";
18 };
19
20 cargoHash = "sha256-H4eKZlay0IZ8vAclGruDAyh7Vd6kCvGLxJ5y/cuF+F4=";
21
22 cargoPatches = [ ./update-gerber-types-to-0.3.patch ];
23
24 nativeBuildInputs = [
25 go-md2man
26 installShellFiles
27 ];
28
29 postBuild = ''
30 go-md2man --in docs/spec-reference.md --out maker-panel.5
31 '';
32
33 postInstall = ''
34 installManPage maker-panel.5
35 '';
36
37 meta = with lib; {
38 description = "Make mechanical PCBs by combining shapes together";
39 homepage = "https://github.com/twitchyliquid64/maker-panel";
40 license = with licenses; [ mit ];
41 maintainers = [ ];
42 };
43}