Skip to content

Commit

Permalink
Add a Nix Flake to the repo for native build dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
waxlamp committed Jan 29, 2024
1 parent 880a102 commit e4cd499
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 e4cd499

Please sign in to comment.