From f1b105571b35b72f5f32c6e2e9c645580b17c0bc Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 29 Nov 2022 20:36:27 +0100 Subject: flake: add nix flake with tools --- flake.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..e465964 --- /dev/null +++ b/flake.nix @@ -0,0 +1,32 @@ +# Author: Pacien TRAN-GIRARD +# Licence: EUPL-1.2 + +{ + inputs = { + # Not yet merged. + # quarto: 1.1.251 -> 1.2.269: https://github.com/NixOS/nixpkgs/pull/201551 + nixpkgs.url = "github:NixOS/nixpkgs/a0297ff"; + flake-utils.url = "github:numtide/flake-utils"; + flaky-utils.url = "git+https://cgit.pacien.net/libs/flaky-utils"; + }; + + outputs = { self, nixpkgs, flake-utils, flaky-utils }: + flake-utils.lib.eachDefaultSystem (system: + with nixpkgs.legacyPackages.${system}; + let + + tools = [ + pandoc + quarto + ]; + + in lib.fold lib.recursiveUpdate { } [ + + { + devShell = flaky-utils.lib.mkDevShell { + inherit pkgs tools; + }; + } + + ]); +} -- cgit v1.2.3