Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

3 changed files with 79 additions and 70 deletions

6
flake.lock generated
View File

@ -18,11 +18,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1703467016,
"narHash": "sha256-/5A/dNPhbQx/Oa2d+Get174eNI3LERQ7u6WTWOlR1eQ=",
"lastModified": 1702233072,
"narHash": "sha256-H5G2wgbim2Ku6G6w+NSaQaauv6B6DlPhY9fMvArKqRo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d02d818f22c777aa4e854efc3242ec451e5d462a",
"rev": "781e2a9797ecf0f146e81425c822dca69fe4a348",
"type": "github"
},
"original": {

View File

@ -9,15 +9,19 @@
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
adapter_production_files = variant: pkgs.stdenv.mkDerivation {
build = { variant }:
let
adapter_production_files = pkgs.stdenv.mkDerivation {
name = "production-files";
src = ./kirdy_LD_adapter_${variant};
nativeBuildInputs = [ pkgs.kicad pkgs.zip pkgs.python3 ];
buildPhase = ''
echo ${variant}
# kicad-cli requires the use of $HOME
TMP_DIR="$(mktemp --tmpdir -d kicad-kirdy.XXXXXXX)"
TMP_DIR="$(pwd)/$(mktemp -d tmp.XXXX)"
export HOME=$TMP_DIR
SCH=kirdy_LD_adapter_${variant}.kicad_sch
@ -44,6 +48,8 @@
kicad-cli pcb export drill $PCB -u mm --generate-map --map-format gerberx2 -o ./$PREFIX"_gerber_drill"/
zip -r -j $PREFIX"_gerber_drill" $PREFIX"_gerber_drill"
rm -r $TMP_DIR
'';
installPhase = ''
@ -62,11 +68,11 @@
name = "production-files";
src = ./kirdy_LD_adapter_copper_plate;
nativeBuildInputs = [ pkgs.kicad pkgs.python3 ];
nativeBuildInputs = [ pkgs.kicad pkgs.zip pkgs.python3 ];
buildPhase = ''
# kicad-cli requires the use of $HOME
TMP_DIR="$(mktemp --tmpdir -d kicad-kirdy.XXXXXXX)"
TMP_DIR="$(pwd)/$(mktemp -d tmp.XXXX)"
export HOME=$TMP_DIR
PCB=kirdy_LD_adapter_copper_plate.kicad_pcb
@ -77,6 +83,8 @@
export KICAD7_3DMODEL_DIR=${pkgs.kicad.libraries.packages3d}/share/kicad/3dmodels
kicad-cli pcb export step $PCB --subst-models --force -o $PREFIX.step
rm -r $TMP_DIR
'';
installPhase = ''
@ -86,13 +94,15 @@
};
in {
"LD_adapter_${variant}_PCB" = adapter_production_files;
"LD_adapter_${variant}_copper_plate" = copper_plate_production_files;
};
in rec {
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt;
packages.x86_64-linux = {
"LD_adapter_type_1_PCB" = adapter_production_files "type_1";
"LD_adapter_type_2_PCB" = adapter_production_files "type_2";
"LD_adapter_copper_plate" = copper_plate_production_files;
};
packages.x86_64-linux = (build { variant = "type_1"; })
// (build { variant = "type_2"; });
devShells.x86_64-linux.default =
let pkgs = nixpkgs.legacyPackages.x86_64-linux;

View File

@ -6,9 +6,8 @@
(paper "A4")
(title_block
(rev "v0_1rc2")
(rev "v0_1rc1")
(comment 1 "v0_1rc1: Changed the location of silkscreen markings of Bias-T Modulation Input")
(comment 2 "v0_1rc2: Correct Silkscreen Markings of LD9 and LD11")
)
(layers
@ -2762,19 +2761,19 @@
(gr_text "Use Bias-T" (at -40.4 -1.39 270) (layer "B.SilkS") (tstamp 27273078-f90b-42d9-aa8d-6b3b1a0d97c4)
(effects (font (size 0.8 0.8) (thickness 0.15)) (justify left mirror))
)
(gr_text "LD-: 11" (at -32.258 4.582) (layer "B.SilkS") (tstamp 4cc0ef08-f92c-4c13-bdf4-4ed9b0d668f1)
(gr_text "LD-: 9" (at -32.258 4.582) (layer "B.SilkS") (tstamp 4cc0ef08-f92c-4c13-bdf4-4ed9b0d668f1)
(effects (font (size 1 1) (thickness 0.15)) (justify left mirror))
)
(gr_text "PD+: 3" (at -27.25 11.01) (layer "B.SilkS") (tstamp c5025ffb-4132-40ad-9ba2-5a426d255675)
(effects (font (size 1 1) (thickness 0.15)) (justify left mirror))
)
(gr_text "Kirdy Adapter for Type-1 Laser Diode \nRev: 0_1rc2" (at 41.148 32.014) (layer "B.SilkS") (tstamp d9185641-8167-4841-b540-088303848472)
(gr_text "Kirdy Adapter for Type-1 Laser Diode \nRev: 0_1" (at 41.148 32.014) (layer "B.SilkS") (tstamp d9185641-8167-4841-b540-088303848472)
(effects (font (size 1 1) (thickness 0.15)) (justify left mirror))
)
(gr_text "PD-: 7" (at -27.25 9.01) (layer "B.SilkS") (tstamp e9305944-d283-4481-a373-483045d7de6d)
(effects (font (size 1 1) (thickness 0.15)) (justify left mirror))
)
(gr_text "LD-: 9" (at -32.258 1.998) (layer "B.SilkS") (tstamp f8a1f124-6566-4a42-92b0-87395200e1f8)
(gr_text "LD-: 11" (at -32.258 1.998) (layer "B.SilkS") (tstamp f8a1f124-6566-4a42-92b0-87395200e1f8)
(effects (font (size 1 1) (thickness 0.15)) (justify left mirror))
)
(gr_text "Type-1 LD" (at 0 29.01) (layer "F.SilkS") (tstamp 6b833559-6474-4221-aa6a-78219e45b6af)