Skip to content

Commit

Permalink
migrate to nixpkgs cdk
Browse files Browse the repository at this point in the history
  • Loading branch information
will-lol committed Apr 27, 2024
1 parent b4d63c6 commit ddee0df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
14 changes: 0 additions & 14 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 2 additions & 15 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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; };
Expand All @@ -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
'';
Expand Down

0 comments on commit ddee0df

Please sign in to comment.