diff --git a/flake.lock b/flake.lock index 7132649..03f190c 100644 --- a/flake.lock +++ b/flake.lock @@ -2,15 +2,16 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1684787197, - "narHash": "sha256-tvGDj3zgpW5NGoVKvoTQvkhfFPDgkbzfX+zFUW8NeHw=", + "lastModified": 1695318763, + "narHash": "sha256-FHVPDRP2AfvsxAdc+AsgFJevMz5VBmnZglFUMlxBkcY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e2614d8ebcdf9a9eae0efe074f4d745d28595886", + "rev": "e12483116b3b51a185a33a272bf351e357ba9a99", "type": "github" }, "original": { "owner": "NixOS", + "ref": "nixpkgs-unstable", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 9c02a10..e239e39 100644 --- a/flake.nix +++ b/flake.nix @@ -1,39 +1,28 @@ { - description = "JavaScript development environment"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs"; - }; - - outputs = { self, nixpkgs }: - let - # Systems supported - allSystems = [ - "x86_64-linux" - "aarch64-linux" - "x86_64-darwin" - "aarch64-darwin" + outputs = { self, nixpkgs }: let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in { + devShells.${system}.default = pkgs.mkShell { + packages = with pkgs; [ + nodejs_20 + tree ]; - - forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f { - pkgs = nixpkgs.legacyPackages.${system}; - }); - in - { - packages = forAllSystems ({ pkgs }: { - default = pkgs.buildNpmPackage { - name = "build-aurora-blog"; - buildInputs = with pkgs; [ - nodejs_20 - ]; - src = ./.; - npmDepsHash = "sha256-hIfaaeKbS+Whav575OyIX1c9GoL6qks12zhHZB2w9IA="; - npmBuild = "npm run build"; - installPhase = '' - mkdir $out - cp -r dist/* $out - ''; - }; - }); }; + packages.${system}.default = pkgs.buildNpmPackage { + name = "build-aurora-blog"; + buildInputs = with pkgs; [ + nodejs_20 + ]; + src = ./.; + npmDepsHash = "sha256-hIfaaeKbS+Whav575OyIX1c9GoL6qks12zhHZB2w9IA="; + npmBuild = "npm run build"; + installPhase = '' + mkdir $out + cp -r dist/* $out + ''; + }; + }; }