From cd19bd75b347c5914aafe7bb1b5d9dca74ebba9b Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Wed, 20 Nov 2024 15:31:22 +0100 Subject: [PATCH] add nix flake --- flake.lock | 25 +++++++++++++++++++++++++ flake.nix | 19 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..6bc678b --- /dev/null +++ b/flake.lock @@ -0,0 +1,25 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1731890469, + "narHash": "sha256-D1FNZ70NmQEwNxpSSdTXCSklBH1z2isPR84J6DQrJGs=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5083ec887760adfe12af64830a66807423a859a7", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b426747 --- /dev/null +++ b/flake.nix @@ -0,0 +1,19 @@ +{ + description = "Website"; + + outputs = { self, nixpkgs }: + let pkgs = nixpkgs.legacyPackages.x86_64-linux; + in { + devShell.x86_64-linux = with pkgs; + mkShell { + nativeBuildInputs = [ + imagemagick + just + libavif + libjxl + pandoc + tup + ]; + }; + }; +}