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:
parent
41158fbea0
commit
aea51fccd8
1 changed files with 21 additions and 0 deletions
21
flake.nix
Normal file
21
flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue