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
/public
/node_modules
/result
/.netlify

View file

@ -6,14 +6,18 @@
self,
}: let
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;};
pkgsForAllSystems = f: (forAllSystems (system: f (pkgsFor system)));
pkgsGen = f: (genSystemAttrs (system: (f (pkgsFor system))));
buildDeps = pkgs: with pkgs; [hugo tailwindcss];
infraDeps = pkgs: with pkgs; [netlify-cli];
in {
devShells = pkgsForAllSystems (pkgs: {
packages = pkgsGen (pkgs: {
stylesheet = pkgs.callPackage ./nix/packages/stylesheet.nix {};
});
devShells = pkgsGen (pkgs: {
default = pkgs.mkShell {
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": {}
}