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/flake.nix | 85 ---------------------------------------------------------- 1 file changed, 85 deletions(-) delete mode 100644 clef/flake.nix (limited to 'clef/flake.nix') diff --git a/clef/flake.nix b/clef/flake.nix deleted file mode 100644 index f20b1b8..0000000 --- a/clef/flake.nix +++ /dev/null @@ -1,85 +0,0 @@ -# vim: ft=nix : -{ - inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; - flake-utils.url = "github:numtide/flake-utils/main"; - nix-filter.url = "github:numtide/nix-filter/main"; - - cq = { - url = "github:vinszent/cq-flake/main"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.flake-utils.follows = "flake-utils"; - }; - }; - - description = "clef: kicad shared data and utils"; - - outputs = { self, nixpkgs, flake-utils, ... } @ inputs: (flake-utils.lib.eachDefaultSystem (system: { - packages = let - packages = nixpkgs.legacyPackages.${system}.callPackages ./nix/pkgs {}; - - pkgs = import nixpkgs { - inherit system; - - overlays = with self.overlays; [ - kicad - nix-filter - - (final: prev: packages) - ]; - }; - - clef = pkgs.callPackage ./nix; - in packages // { - inherit clef; - default = clef; - }; - - devShells.default = let - pkgs = import nixpkgs { - inherit system; - - overlays = with self.overlays; [ - kicad - ]; - }; - - in pkgs.mkShell { - name = "devshell"; - version = self.rev or "dirty"; - - packages = with pkgs; [ - kicad - kikit - ]; - }; - } - )) // { - overlays = let - base = (import ./overlays.nix { inherit inputs; }); - - in base // { - # clef built against its own nixpkgs import with its required overlay - # deps (kicad, occt). - # - # _This will cause another evaluation of nixpkgs_, which is generally - # undesirable. However, this provides for the most hassle-free way to - # use clef, as you don't need to include all of the overlay dependencies - # in your nixpkgs. - default = final: prev: { - inherit (self.packages.${prev.system}) clef; - }; - - # No overlay dependencies included -- clef will not work by default. - # You can replicate overlays.default with: - # - # import nixpkgs { overlays = with clef.overlays; [ freestanding kicad nix-filter ]; } - # - # Assuming you've pinned clef's nixpkgs to the same version as yours. - # This functionality is provided to give you an option - freestanding = final: prev: (prev.callPackage ./nix/pkgs {}) { - clef = prev.callPackage ./nix; - }; - }; - }; -} -- cgit v1.3.1