Project: Create flake.nix

But it does not work because the git repository uses sha256 hashes which
nix does not yet support.
This commit is contained in:
Michael Volz 2025-01-27 17:47:02 +01:00
parent 41158fbea0
commit aea51fccd8

21
flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in
{
devShells = forAllSystems (system: {
default = nixpkgs.legacyPackages.${system}.mkShellNoCC {
packages = with nixpkgs.legacyPackages.${system}; [
ruff
poetry
python
];
};
});
};
}