From 94e741cbc0b88a0efc681b4422201bbabdabd657 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 22 Aug 2021 20:29:10 +0200 Subject: Move dev shell to flake --- flake.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..429d61a --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + description = "static site generator for blog.kummerlaender.eu"; + + inputs = { + nixpkgs.url = github:NixOS/nixpkgs/nixos-21.05; + pkgs-personal.url = git+https://code.kummerlaender.eu/pkgs; + }; + + outputs = { self, nixpkgs, pkgs-personal, ... }: let + pkgs = nixpkgs.legacyPackages.x86_64-linux; + in { + devShell.x86_64-linux = pkgs.mkShell { + buildInputs = [ + pkgs.pandoc + pkgs.highlight + pkgs-personal.katex-wrapper + pkgs-personal.make-xslt + ]; + + shellHook = '' + export NIX_SHELL_NAME="blog.kummerlaender.eu" + ''; + }; + }; +} -- cgit v1.2.3