build: add nix flake for rst2pdf

This commit is contained in:
Oliver Davies 2023-01-12 17:07:35 +00:00
parent 6640ded8c3
commit 7a762182ef
2 changed files with 63 additions and 0 deletions

20
flake.nix Normal file
View file

@ -0,0 +1,20 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/master";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShell = with pkgs; pkgs.mkShell {
buildInputs = [
just
python310Packages.rst2pdf
];
};
});
}