From 94e248b95eaaca6fbee363ef437f4bd7524da397 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Tue, 19 Nov 2024 14:58:12 +0100 Subject: [PATCH] switch to flake --- flake.lock | 25 +++++++++++++++++++++++++ flake.nix | 19 +++++++++++++++++++ shell.nix | 1 + 3 files changed, 45 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 + ]; + }; + }; +} diff --git a/shell.nix b/shell.nix index dcde169..0753dc8 100644 --- a/shell.nix +++ b/shell.nix @@ -5,6 +5,7 @@ pkgs.mkShell { imagemagick just libavif + nushell pandoc tup ];