From 7bde9532028a22a125375c04f39d6e44390c299e Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar <3998+srid@users.noreply.github.com> Date: Fri, 17 Oct 2025 07:48:27 -0400 Subject: [PATCH] Remove nixpkgs inputs (follow from user flake) --- flake.lock | 17 ----------------- flake.nix | 6 +++--- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/flake.lock b/flake.lock index 9063fd8..0f2060d 100644 --- a/flake.lock +++ b/flake.lock @@ -18,22 +18,6 @@ "type": "github" } }, - "nixpkgs": { - "locked": { - "lastModified": 1693654884, - "narHash": "sha256-EqKKEl+IOS8TSjkt+xn1qGpsjnx5/ag33YNQ1+c7OuM=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "e7f35e03abd06a2faef6684d0de813370e13bda8", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "nixpkgs-lib": { "locked": { "dir": "lib", @@ -55,7 +39,6 @@ "root": { "inputs": { "flake-parts": "flake-parts", - "nixpkgs": "nixpkgs", "systems": "systems" } }, diff --git a/flake.nix b/flake.nix index eec1e79..e85739d 100644 --- a/flake.nix +++ b/flake.nix @@ -1,15 +1,15 @@ { inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; flake-parts.url = "github:hercules-ci/flake-parts"; # The systems to build for. If empty, build for current system. systems.url = "github:srid/empty"; flake = { }; }; - outputs = inputs@{ flake-parts, ... }: - flake-parts.lib.mkFlake { inherit inputs; } { + outputs = inputs: + inputs.flake-parts.lib.mkFlake { inherit inputs; } { systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; perSystem = { self', pkgs, lib, system, ... }: { + _module.args.pkgs = import inputs.flake.inputs.nixpkgs { inherit system; }; packages = let build-systems =