Skip to content

Commit

Permalink
Merge pull request #1843 from dandi/flake
Browse files Browse the repository at this point in the history
Add a Nix Flake for native build dependencies
  • Loading branch information
waxlamp authored Feb 8, 2024
2 parents edc1b5b + e4cd499 commit 6d45be7
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
26 changes: 26 additions & 0 deletions flake.lock

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

30 changes: 30 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
description = "DANDI native build dev environment";

inputs.nixpkgs.url = "github:NixOS/nixpkgs";

outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = with pkgs; [
# Python 3.11
python311Packages.python

# Docker and Docker Compose
docker

# Postgres stuff
postgresql
libpqxx
];

shellHook = ''
source ./venv/bin/activate
source ./dev/export-env.sh
'';
};
};
}

0 comments on commit 6d45be7

Please sign in to comment.