Add nix flake and package

This commit is contained in:
Toast 2024-10-18 13:50:29 +02:00
parent 4f9fcf589c
commit 3d8667781d
3 changed files with 94 additions and 0 deletions

17
flake.nix Normal file
View file

@ -0,0 +1,17 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages = rec {
default = leek;
leek = pkgs.python3Packages.callPackage ./package.nix { };
};
}
);
}