{ 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