From 689788568599dedbc109d137929de866ed17f667 Mon Sep 17 00:00:00 2001 From: erikarvstedt <36110478+erikarvstedt@users.noreply.github.com> Date: Thu, 28 Oct 2021 15:04:19 +0200 Subject: [PATCH] Pin nixpkgs to a working revision. With the latest stable channel `nixos-21.05`, test `behavior.saturating_arithmetic.test "saturating multiplication"` fails. --- Development-with-nix.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Development-with-nix.md b/Development-with-nix.md index 7e707c2..47274f1 100644 --- a/Development-with-nix.md +++ b/Development-with-nix.md @@ -1,6 +1,13 @@ Here is a sample shell.nix for building/developing zig. ```nix -{ pkgs ? import { } }: +let + nixpkgs = builtins.fetchTarball { + # nixpkgs-unstable (2021-10-28) + url = "https://github.com/NixOS/nixpkgs/archive/22a500a3f87bbce73bd8d777ef920b43a636f018.tar.gz"; + sha256 = "1rqp9nf45m03mfh4x972whw2gsaz5x44l3dy6p639ib565g24rmh"; + }; +in +{ pkgs ? import nixpkgs { } }: pkgs.mkShell { hardeningDisable = [ "all" ];