WIP
This commit is contained in:
parent
45bfe5a4f3
commit
a7cb13f15a
5 changed files with 20 additions and 9 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,6 +2,7 @@
|
||||||
/resources
|
/resources
|
||||||
/public
|
/public
|
||||||
/node_modules
|
/node_modules
|
||||||
|
/result
|
||||||
|
|
||||||
/.netlify
|
/.netlify
|
||||||
|
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
12
nix/packages/stylesheet.nix
Normal file
12
nix/packages/stylesheet.nix
Normal 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
6
package-lock.json
generated
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
"name": "site.lyte.dev",
|
|
||||||
"lockfileVersion": 3,
|
|
||||||
"requires": true,
|
|
||||||
"packages": {}
|
|
||||||
}
|
|
Loading…
Reference in a new issue