blob: d9ccd2764ac3bb26d8f03a70cf72f0a3bb7bd31f (
plain) (
blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
{
description = "NixOS flake for my website";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/x86_64-linux";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
revealjs = {
url = "github:hakimel/reveal.js";
flake = false;
};
essay = {
url = "git+https://codeberg.org/bpeetz/kant_and_free_software.git";
inputs = {
nixpkgs.follows = "nixpkgs";
systems.follows = "systems";
};
};
};
outputs = {
nixpkgs,
flake-utils,
essay,
...
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages.${system};
vscode-langservers-extracted = import ./vscode-langservers-extracted.nix {inherit pkgs;};
in {
packages = {
default = pkgs.stdenv.mkDerivation {
pname = "b-peetz.de";
version = "v1.0";
src = ./src;
# Run local
preferLocalBuild = true;
allowSubstitutes = false;
nativeBuildInputs = [];
buildPhase = ''
cp ${essay.outputs.packages."${system}".default}/philosophy/kant_and_free_software.pdf ./dead-trees/kant_and_free_software.pdf
'';
installPhase = ''
install -d $out/
cp -r . $out/
'';
};
};
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [
alejandra
ltex-ls
nil
nodePackages_latest.prettier
rubyPackages.sass
shellcheck
statix
vscode-langservers-extracted
];
};
};
}
);
}
# vim: ts=2
|