From 982798292719a24bcbb4f9e17cd5c65c8a46ecda Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Mon, 2 Sep 2024 19:53:43 -0400 Subject: move hw into subdirectory --- clef/nix/board.nix | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 clef/nix/board.nix (limited to 'clef/nix/board.nix') diff --git a/clef/nix/board.nix b/clef/nix/board.nix deleted file mode 100644 index 5de46e0..0000000 --- a/clef/nix/board.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ - runCommand, - - svg, - model, - fabrication, - schematic, - panel, - panelSrc, - bom, - - name, - outPath, -}: let - pkg = runCommand name {} '' - set -e - - mkdir -p "$out/${outPath}" - cd "$out/${outPath}" - - echo "populating $(pwd)" - - cp --reflink=auto -vr "${schematic}/share/npry/clef/schematic" ./ - cp --reflink=auto -vr "${svg}/share/npry/clef/svg" ./ - cp --reflink=auto -vr "${fabrication}/share/npry/clef/fab" ./ - cp --reflink=auto -vr "${model}/share/npry/clef/model" ./ - cp --reflink=auto -vr "${bom}/share/npry/clef/bom" ./ - - ${if panelSrc != null then '' - cp --reflink=auto -vr "${panelSrc}/share/npry/clef/panel" ./ - '' else ""} - ''; - -in pkg.overrideAttrs (prevAttrs: { - passthru = (prevAttrs.passthru or {}) // { - inherit schematic fabrication svg model panel panelSrc bom; - fab = fabrication; - }; -}) -- cgit v1.3.1