switch to flake

This commit is contained in:
Fabien Freling 2024-11-19 14:58:12 +01:00
parent c28b99933e
commit 6a3440dd1a
3 changed files with 45 additions and 0 deletions

25
flake.lock Normal file
View file

@ -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
}

19
flake.nix Normal file
View file

@ -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
];
};
};
}

View file

@ -5,6 +5,7 @@ pkgs.mkShell {
imagemagick imagemagick
just just
libavif libavif
nushell
pandoc pandoc
tup tup
]; ];