diff --git a/flake.lock b/flake.lock index cbf89fc..2e01691 100644 --- a/flake.lock +++ b/flake.lock @@ -1,18 +1,5 @@ { "nodes": { - "aws-cdk": { - "flake": false, - "locked": { - "lastModified": 1714198929, - "narHash": "sha256-fryxprH1L806+QQhmJcJDnghkS7JjKPfUwj2ajWy514=", - "type": "tarball", - "url": "https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.139.0.tgz" - }, - "original": { - "type": "tarball", - "url": "https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.139.0.tgz" - } - }, "flake-utils": { "inputs": { "systems": "systems" @@ -100,7 +87,6 @@ }, "root": { "inputs": { - "aws-cdk": "aws-cdk", "flake-utils": "flake-utils", "nixpkgs": "nixpkgs", "templRepo": "templRepo" diff --git a/flake.nix b/flake.nix index 56f0b95..75132d8 100644 --- a/flake.nix +++ b/flake.nix @@ -5,26 +5,13 @@ nixpkgs.url = "github:NixOS/nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; templRepo.url = "github:a-h/templ/refs/tags/v0.2.543"; - aws-cdk = { - url = "https://registry.npmjs.org/aws-cdk/-/aws-cdk-2.139.0.tgz"; - flake = false; - }; }; - outputs = { self, nixpkgs, flake-utils, aws-cdk, templRepo }: + outputs = { self, nixpkgs, flake-utils, templRepo }: flake-utils.lib.eachDefaultSystem (system: let name = "personalWebsite"; templ = templRepo.packages.${system}.templ; - cdk = pkgs.stdenv.mkDerivation { - name = "aws-cdk"; - version = "2.121.1"; - src = aws-cdk; - phases = [ "installPhase" "patchPhase" ]; - installPhase = '' - cp -r $src $out - ''; - }; overlays = []; lib = nixpkgs.lib; pkgs = import nixpkgs { inherit system overlays; }; @@ -45,7 +32,7 @@ }; defaultPackage = goBuild; devShell = pkgs.mkShell { - packages = [ pkgs.tailwindcss pkgs.entr pkgs.nodePackages.typescript-language-server pkgs.fd pkgs.nodejs_18 pkgs.awscli2 pkgs.aws-sam-cli pkgs.go pkgs.gopls templ cdk ]; + packages = [ pkgs.tailwindcss pkgs.entr pkgs.nodePackages.typescript-language-server pkgs.fd pkgs.nodejs_18 pkgs.awscli2 pkgs.aws-sam-cli pkgs.go pkgs.gopls pkgs.nodePackages.aws-cdk templ ]; shellHook = '' export ENVIRONMENT=dev '';