prepared for migration

This commit is contained in:
didier committed 2024-07-02 19:01:57 -04:00
1 parent df26a3fe96
commit a31390d55a
30 files changed
+64 -28

No files matched your search

+21 -21
View File
@@ -1,32 +1,32 @@
{
description = "Trying nest.js";
description = "Phenix website";
inputs = {
nixpkgs.url = "nixpkgs/nixos-21.11";
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
rec {
packages = flake-utils.lib.flattenTree {
hello = pkgs.hello;
gitAndTools = pkgs.gitAndTools;
nodejs = pkgs.nodejs;
let
pkgs = nixpkgs.legacyPackages.${system};
build-static-files = pkgs.stdenv.mkDerivation {
name = "phenix-website-static-assets";
src = ./static;
buildPhase = ''
find . -type f -exec ${pkgs.brotli}/bin/brotli -9 -f -k {} \;
'';
installPhase = ''
cp -r . $out
'';
};
defaultPackage = packages.hello;
apps.hello = flake-utils.lib.mkApp { drv = packages.hello; };
defaultApp = apps.hello;
in {
packages = { static = build-static-files; };
devShell = pkgs.mkShell {
name = "Nid-JS";
buildInputs = with pkgs; [
nodejs
flyway
nodePackages.node2nix
];
name = "Phenix-Website";
buildInputs = with pkgs; [ deno ];
};
}
);
});
}