trying to use flakes to build the lisp system

This commit is contained in:
Chris Cochrun 2024-03-28 14:08:04 -05:00
parent 917f67c539
commit 4b406db27f
3 changed files with 48 additions and 34 deletions

View file

@ -4,18 +4,19 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
cl-nix-lite.url = "github:hraban/cl-nix-lite";
};
outputs = { self, nixpkgs, flake-utils }:
outputs = { self, nixpkgs, flake-utils, cl-nix-lite }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
pkgs = nixpkgs.legacyPackages.${system}.extend cl-nix-lite.overlays.default;
src = ./.;
in
{
devShell = import ./shell.nix { inherit pkgs; };
defaultPackage = import ./default.nix { };
defaultPackage = pkgs.callPackage ./default.nix { };
}
);
}