From f76f0a79035a439b69985290275cea3f0afa6863 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Sat, 18 Oct 2025 07:08:30 +0530 Subject: [PATCH] deps: prune flake-utils --- flake.lock | 34 ---------------------------------- flake.nix | 26 +++++++++++--------------- 2 files changed, 11 insertions(+), 49 deletions(-) diff --git a/flake.lock b/flake.lock index 21b0c919..53b2f35c 100644 --- a/flake.lock +++ b/flake.lock @@ -1,23 +1,5 @@ { "nodes": { - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, "nixpkgs": { "locked": { "lastModified": 1755577059, @@ -34,24 +16,8 @@ }, "root": { "inputs": { - "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 4a9eee98..3f4e4715 100644 --- a/flake.nix +++ b/flake.nix @@ -1,24 +1,20 @@ { description = "build lavafroth.is-a.dev locally"; - - inputs.flake-utils.url = "github:numtide/flake-utils"; - outputs = { - self, nixpkgs, - flake-utils, + ... }: - flake-utils.lib.eachDefaultSystem ( - system: - let - pkgs = nixpkgs.legacyPackages.${system}; - in - { - devShells.default = pkgs.mkShell { + let + forAllSystems = + f: + nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system: f nixpkgs.legacyPackages.${system}); + in + { + devShells = forAllSystems (pkgs: { + default = pkgs.mkShell { packages = with pkgs; [ hugo - vscode-css-languageserver (writeScriptBin "serve" '' ${pkgs.hugo}/bin/hugo -D ${pkgs.pagefind}/bin/pagefind --output-path "static/pagefind" @@ -26,6 +22,6 @@ '') ]; }; - } - ); + }); + }; }