From af9b13e7d67312a7d4b3d51e65e3d79ca72d2af1 Mon Sep 17 00:00:00 2001 From: Michael Lynch Date: Tue, 26 Mar 2024 16:13:20 -0400 Subject: [PATCH] Add SQLite to Nix flake (#213) --- flake.lock | 19 ++++++++++++++++++- flake.nix | 8 +++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index 6c19d5f..8a01e02 100644 --- a/flake.lock +++ b/flake.lock @@ -90,7 +90,8 @@ "litestream_dep": "litestream_dep", "nodejs_dep": "nodejs_dep", "shellcheck_dep": "shellcheck_dep", - "sqlfluff_dep": "sqlfluff_dep" + "sqlfluff_dep": "sqlfluff_dep", + "sqlite_dep": "sqlite_dep" } }, "shellcheck_dep": { @@ -125,6 +126,22 @@ "type": "github" } }, + "sqlite_dep": { + "locked": { + "lastModified": 1706683685, + "narHash": "sha256-FtPPshEpxH/ewBOsdKBNhlsL2MLEFv1hEnQ19f/bFsQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5ad9903c16126a7d949101687af0aa589b1d7d3d", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "5ad9903c16126a7d949101687af0aa589b1d7d3d", + "type": "github" + } + }, "systems": { "locked": { "lastModified": 1681028828, diff --git a/flake.nix b/flake.nix index 9111af8..8d064e9 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; @@ -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}; @@ -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 @@ -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 ''; };