diff --git a/flake.lock b/flake.lock index 9257cc3..62e0614 100644 --- a/flake.lock +++ b/flake.lock @@ -1,55 +1,25 @@ { "nodes": { - "flake-utils": { - "inputs": { - "systems": "systems" - }, + "nixpkgs": { "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "lastModified": 1742422364, + "narHash": "sha256-mNqIplmEohk5jRkqYqG19GA8MbQ/D4gQSK0Mu4LvfRQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "a84ebe20c6bc2ecbcfb000a50776219f48d134cc", "type": "github" }, "original": { - "owner": "numtide", - "repo": "flake-utils", + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", "type": "github" } }, - "nixpkgs": { - "locked": { - "lastModified": 0, - "narHash": "sha256-NLznXB5AOnniUtZsyy/aPWOk8ussTuePp2acb9U+ISA=", - "path": "/nix/store/3kwj19dbdfxnjbcns4hw307ylhz3wgrm-source", - "type": "path" - }, - "original": { - "id": "nixpkgs", - "type": "indirect" - } - }, "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 e9fc35b..1a81031 100644 --- a/flake.nix +++ b/flake.nix @@ -1,27 +1,24 @@ { - description = "devshell for github:lavafroth/sweet"; - - inputs.flake-utils.url = "github:numtide/flake-utils"; + description = "devshell for github:waycrate/sweet"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; outputs = + { nixpkgs, ... }: + let + # leaving out darwin as it cannot run wayland + systems = [ + "x86_64-linux" + "aarch64-linux" + ]; + forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system}); + in { - self, - nixpkgs, - flake-utils, - }: - flake-utils.lib.eachDefaultSystem ( - system: - let - pkgs = nixpkgs.legacyPackages.${system}; - in - { - devShells.default = pkgs.mkShell rec { - packages = with pkgs; [ - stdenv.cc.cc.lib - ]; - - LD_LIBRARY_PATH = "${nixpkgs.lib.makeLibraryPath packages}"; + devShells = forAllSystems (pkgs: { + default = pkgs.mkShell { + packages = [ pkgs.stdenv.cc.cc ]; + LD_LIBRARY_PATH = pkgs.stdenv.cc.cc.LIBRARY_PATH; }; - } - ); + }); + }; + }