From af389c7a6280f482138f52e1019fca3c9b8ba638 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Fri, 30 Jun 2023 17:23:01 +0200 Subject: [PATCH] Pin dependencies to a nixpkgs commit --- shell.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/shell.nix b/shell.nix index d501a7a..c612a45 100644 --- a/shell.nix +++ b/shell.nix @@ -1,6 +1,14 @@ -with import {}; -mkShell { - buildInputs = [ +{ pkgs ? import {} }: +let + pkgsPin = import (pkgs.fetchFromGitHub { + owner = "NixOS"; + repo = "nixpkgs"; + rev = "a55ae76040581f6a69aeb2c63e4878b306c2b9ac"; + sha256 = "0iywjwn8ksdxpfm8fan5yqdvmb91sirjgx0w3jqczza2vhxl9pf3"; + }) {}; +in +pkgs.mkShell { + buildInputs = with pkgsPin; [ git go gotestsum