-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
32 lines (29 loc) · 1.16 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
description = "Website of Angus Dippenaar";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system: let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
(pkgs.writeShellScriptBin "vscode-html-language-server" "exec -a $0 ${nodePackages.vscode-html-languageserver-bin}/bin/html-languageserver $0")
(pkgs.writeShellScriptBin "vscode-css-language-server" "exec -a $0 ${nodePackages.vscode-css-languageserver-bin}/bin/css-languageserver $0")
nodePackages.prettier
minio-client
(writeShellScriptBin "mc-upload" ''
if ! ${minio-client}/bin/mc stat $BUCKET_NAME &> /dev/null; then
${minio-client}/bin/mc mb $BUCKET_NAME
${minio-client}/bin/mc anonymous set download $BUCKET_NAME
fi
${minio-client}/bin/mc cp --quiet ./index.html $BUCKET_NAME
'')
];
};
}
);
}