Skip to content

Commit

Permalink
dep updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed May 15, 2024
1 parent 319f802 commit 40a55e7
Show file tree
Hide file tree
Showing 4 changed files with 1,402 additions and 2,027 deletions.
42 changes: 4 additions & 38 deletions flake.lock

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

45 changes: 31 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
{
description = "Dev environment for strato-db";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShell = pkgs.mkShell {
inputs = {
# Make sure to use the same locked commits as the nix-infra deploys
# That way the packages are shared
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};

nativeBuildInputs = with pkgs; [
sqlite-interactive
outputs = { self, nixpkgs }:
let
b = builtins;
# Make sure that this include runtime libs linked by npm builds
deps = pkgs: with pkgs; [
bashInteractive
sqlite-interactive
# NodeJS
nodejs_22
corepack_22
];
makeDevShell = system: pkgs: {
default = pkgs.mkShell {
nativeBuildInputs = (deps pkgs) ++ (with pkgs; [
gitMinimal

nodejs-18_x
];
# sqlite3 module
sqlite-interactive.dev
]);
shellHook = ''
export PATH=$PWD/node_modules/.bin:$PATH
'';
};
});
};
in
{
devShells = b.mapAttrs (makeDevShell) nixpkgs.legacyPackages;
};
}
Loading

0 comments on commit 40a55e7

Please sign in to comment.