parent
60dc0dbc55
commit
51cb9f3126
41
flake.lock
41
flake.lock
|
@ -1,34 +1,17 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1731533236,
|
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747144303,
|
"lastModified": 1747060738,
|
||||||
"narHash": "sha256-6WZAP0wiFxH9EYnyLOl9kRKrxmWlRR1sBYFvUzP9adw=",
|
"narHash": "sha256-ByfPRQuqj+nhtVV0koinEpmJw0KLzNbgcgi9EF+NVow=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a59b0f1dfd64ca1cf96f7a6e7338f430428c3c17",
|
"rev": "eaeed9530c76ce5f1d2d8232e08bec5e26f18ec1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -67,27 +50,11 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"tailwind-ctp": "tailwind-ctp",
|
"tailwind-ctp": "tailwind-ctp",
|
||||||
"tailwind-ctp-lsp": "tailwind-ctp-lsp"
|
"tailwind-ctp-lsp": "tailwind-ctp-lsp"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tailwind-ctp": {
|
"tailwind-ctp": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
|
|
96
flake.nix
96
flake.nix
|
@ -1,47 +1,67 @@
|
||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs";
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
|
||||||
tailwind-ctp.url = "git+https://git.jojodev.com/jolheiser/tailwind-ctp";
|
tailwind-ctp.url = "git+https://git.jojodev.com/jolheiser/tailwind-ctp";
|
||||||
tailwind-ctp-lsp.url = "git+https://git.jojodev.com/jolheiser/tailwind-ctp-intellisense";
|
tailwind-ctp-lsp.url = "git+https://git.jojodev.com/jolheiser/tailwind-ctp-intellisense";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
inputs:
|
||||||
|
let
|
||||||
|
systems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"i686-linux"
|
||||||
|
"x86_64-darwin"
|
||||||
|
"aarch64-linux"
|
||||||
|
"armv6l-linux"
|
||||||
|
"armv7l-linux"
|
||||||
|
];
|
||||||
|
forAllSystems =
|
||||||
|
f:
|
||||||
|
inputs.nixpkgs.lib.genAttrs systems (
|
||||||
|
system:
|
||||||
|
f {
|
||||||
|
pkgs = import inputs.nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
overlays = [ inputs.self.overlays.default ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
in
|
||||||
{
|
{
|
||||||
self,
|
overlays.default = final: prev: {
|
||||||
flake-utils,
|
tailwind-ctp = inputs.tailwind-ctp.packages.${prev.system}.default;
|
||||||
nixpkgs,
|
tailwind-ctp-lsp = inputs.tailwind-ctp-lsp.packages.${prev.system}.default;
|
||||||
tailwind-ctp,
|
};
|
||||||
tailwind-ctp-lsp,
|
packages = forAllSystems (
|
||||||
}@inputs:
|
{ pkgs }:
|
||||||
flake-utils.lib.eachDefaultSystem (
|
{
|
||||||
system:
|
default = pkgs.buildGoModule {
|
||||||
let
|
pname = "jolheiser.com";
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
version = "site";
|
||||||
tailwind-ctp = inputs.tailwind-ctp.packages.${system}.default;
|
src = ./.;
|
||||||
tailwind-ctp-lsp = inputs.tailwind-ctp-lsp.packages.${system}.default;
|
vendorHash = inputs.nixpkgs.lib.fileContents ./go.mod.sri;
|
||||||
in
|
nativeBuildInputs = [ inputs.tailwind-ctp ];
|
||||||
{
|
excludedPackages = ".";
|
||||||
packages.default = pkgs.buildGoModule {
|
postBuild = ''
|
||||||
pname = "jolheiser.com";
|
go generate
|
||||||
version = "site";
|
mv dist $out
|
||||||
src = ./.;
|
'';
|
||||||
vendorHash = nixpkgs.lib.fileContents ./go.mod.sri;
|
};
|
||||||
nativeBuildInputs = [ tailwind-ctp ];
|
}
|
||||||
excludedPackages = ".";
|
);
|
||||||
postBuild = ''
|
devShells = forAllSystems (
|
||||||
go generate
|
{ pkgs }:
|
||||||
mv dist $out
|
{
|
||||||
'';
|
default = pkgs.mkShell {
|
||||||
};
|
nativeBuildInputs = with pkgs; [
|
||||||
devShells.default = pkgs.mkShell {
|
go
|
||||||
nativeBuildInputs = with pkgs; [
|
tailwind-ctp
|
||||||
go
|
tailwind-ctp-lsp
|
||||||
tailwind-ctp
|
vscode-langservers-extracted
|
||||||
tailwind-ctp-lsp
|
];
|
||||||
vscode-langservers-extracted
|
};
|
||||||
];
|
}
|
||||||
};
|
);
|
||||||
}
|
};
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue