Skip to content

Commit

Permalink
Add SQLite to Nix flake (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch authored Mar 26, 2024
1 parent 6043919 commit af9b13e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
19 changes: 18 additions & 1 deletion flake.lock

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

8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# 1.21.1 release
go_dep.url = "github:NixOS/nixpkgs/78058d810644f5ed276804ce7ea9e82d92bee293";

# 3.44.2 release
sqlite_dep.url = "github:NixOS/nixpkgs/5ad9903c16126a7d949101687af0aa589b1d7d3d";

# 20.6.1 release
nodejs_dep.url = "github:NixOS/nixpkgs/78058d810644f5ed276804ce7ea9e82d92bee293";

Expand All @@ -23,10 +26,11 @@
litestream_dep.url = "github:NixOS/nixpkgs/a343533bccc62400e8a9560423486a3b6c11a23b";
};

outputs = { self, flake-utils, go_dep, nodejs_dep, shellcheck_dep, sqlfluff_dep, flyctl_dep, litestream_dep }@inputs :
outputs = { self, flake-utils, go_dep, sqlite_dep, nodejs_dep, shellcheck_dep, sqlfluff_dep, flyctl_dep, litestream_dep }@inputs :
flake-utils.lib.eachDefaultSystem (system:
let
go_dep = inputs.go_dep.legacyPackages.${system};
sqlite_dep = inputs.sqlite_dep.legacyPackages.${system};
nodejs_dep = inputs.nodejs_dep.legacyPackages.${system};
shellcheck_dep = inputs.shellcheck_dep.legacyPackages.${system};
sqlfluff_dep = inputs.sqlfluff_dep.legacyPackages.${system};
Expand All @@ -45,6 +49,7 @@
go_dep.godef
go_dep.golint
go_dep.go_1_21
sqlite_dep.sqlite
nodejs_dep.nodejs_20
shellcheck_dep.shellcheck
sqlfluff_dep.sqlfluff
Expand All @@ -62,6 +67,7 @@
fly version | cut -d ' ' -f 1-3
echo "node" "$(node --version)"
echo "npm" "$(npm --version)"
echo "sqlite" "$(sqlite3 --version | cut -d ' ' -f 1-2)"
go version
'';
};
Expand Down

0 comments on commit af9b13e

Please sign in to comment.