This commit is contained in:
Daniel Flanagan 2024-07-08 16:26:51 -05:00
parent 45bfe5a4f3
commit a7cb13f15a
5 changed files with 20 additions and 9 deletions

1
.gitignore vendored
View file

@ -2,6 +2,7 @@
/resources /resources
/public /public
/node_modules /node_modules
/result
/.netlify /.netlify

View file

@ -6,14 +6,18 @@
self, self,
}: let }: let
systems = ["aarch64-linux" "aarch64-darwin" "x86_64-darwin" "x86_64-linux"]; systems = ["aarch64-linux" "aarch64-darwin" "x86_64-darwin" "x86_64-linux"];
forAllSystems = nixpkgs.lib.genAttrs systems; genSystemAttrs = nixpkgs.lib.genAttrs systems;
pkgsFor = system: import nixpkgs {inherit system;}; pkgsFor = system: import nixpkgs {inherit system;};
pkgsForAllSystems = f: (forAllSystems (system: f (pkgsFor system))); pkgsGen = f: (genSystemAttrs (system: (f (pkgsFor system))));
buildDeps = pkgs: with pkgs; [hugo tailwindcss]; buildDeps = pkgs: with pkgs; [hugo tailwindcss];
infraDeps = pkgs: with pkgs; [netlify-cli]; infraDeps = pkgs: with pkgs; [netlify-cli];
in { in {
devShells = pkgsForAllSystems (pkgs: { packages = pkgsGen (pkgs: {
stylesheet = pkgs.callPackage ./nix/packages/stylesheet.nix {};
});
devShells = pkgsGen (pkgs: {
default = pkgs.mkShell { default = pkgs.mkShell {
buildInputs = (buildDeps pkgs) ++ (infraDeps pkgs); buildInputs = (buildDeps pkgs) ++ (infraDeps pkgs);
}; };

View file

@ -0,0 +1,12 @@
{
stdenvNoCC,
tailwindcss,
}:
stdenvNoCC.mkDerivation {
pname = "stylesheet";
version = "1.0.0";
src = ../..;
buildPhase = ''
${tailwindcss}/bin/tailwindcss --input ./src/style.css --output $out/style.css
'';
}

6
package-lock.json generated
View file

@ -1,6 +0,0 @@
{
"name": "site.lyte.dev",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}