From 7e41e6e2f3c1acbe57b30b3a3bba0ec42e559e5f Mon Sep 17 00:00:00 2001 From: Saji Date: Thu, 26 Sep 2024 10:33:41 -0500 Subject: [PATCH] make flake use custom amaranth --- flake.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index e000f79..38fcc72 100644 --- a/flake.nix +++ b/flake.nix @@ -10,8 +10,11 @@ }; outputs = - inputs@{ flake-parts, ... }: + inputs@{ self, flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } { + flake = { + overlays.default = import ./python.nix; + }; systems = [ "x86_64-linux" @@ -27,7 +30,7 @@ inputs', pkgs, system, - ... + ... }: let toolchain-pkgs = with pkgs; [ @@ -38,6 +41,11 @@ ]; in { + _module.args.pkgs = import inputs.nixpkgs { + inherit system; + overlays = [self.overlays.default]; + config.allowUnfree = true; + }; formatter = pkgs.nixfmt-rfc-style; packages.default = pkgs.python3.pkgs.buildPythonPackage { name = "groovylight"; @@ -53,6 +61,7 @@ ]; doCheck = true; + dontCheckRuntimeDeps = 1; # nightly amaranth doesn't pass nativeCheckInputs = with pkgs; [