Skip to content

Commit

Permalink
Merge pull request #74 from Sigmanificient/nix
Browse files Browse the repository at this point in the history
Add configuration for Nix OS
  • Loading branch information
GiorgosXou authored Mar 22, 2023
2 parents 71a71d1 + ab81235 commit c2a2037
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
43 changes: 43 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, utils } @inputs:
utils.lib.eachDefaultSystem (system:
with import nixpkgs { inherit system; }; {
devShells.default = mkShell {
LD_LIBRARY_PATH = lib.makeLibraryPath [ncurses6];
venvDir = "venv";
buildInputs = [
pkgs.gnumake
pkgs.python310Full
pkgs.ncurses6
pkgs.python310Packages.venvShellHook
];
postVenvCreation = ''
pip install -r requirements.txt
pip install -e .
'';
};
});
}

0 comments on commit c2a2037

Please sign in to comment.