From 67b486044de3f1607c1c0e9385ae0cf00dbd041e Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Tue, 20 Jul 2021 08:36:00 -0500 Subject: [PATCH] use niv --- nix/sources.json | 12 ++++++++++++ shell.nix | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/nix/sources.json b/nix/sources.json index 7655c1bb5f..7f02e9546f 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -1,4 +1,16 @@ { + "niv": { + "branch": "master", + "description": "Easy dependency management for Nix projects", + "homepage": "https://github.com/nmattia/niv", + "owner": "nmattia", + "repo": "niv", + "rev": "e0ca65c81a2d7a4d82a189f1e23a48d59ad42070", + "sha256": "1pq9nh1d8nn3xvbdny8fafzw87mj7gsmp6pxkdl65w2g18rmcmzx", + "type": "tarball", + "url": "https://github.com/nmattia/niv/archive/e0ca65c81a2d7a4d82a189f1e23a48d59ad42070.tar.gz", + "url_template": "https://github.com///archive/.tar.gz" + }, "nixpkgs": { "branch": "nixpkgs-unstable", "description": "Nix Packages collection", diff --git a/shell.nix b/shell.nix index e06b0736b6..44666067d0 100644 --- a/shell.nix +++ b/shell.nix @@ -59,6 +59,11 @@ let # faster builds - see https://github.com/rtfeldman/roc/blob/trunk/BUILDING_FROM_SOURCE.md#use-lld-for-the-linker llvmPkgs.lld + + # meta-tools + # note: niv manages its own nixpkgs so it doesn't need pkgs.callPackage. Do + # `cachix use niv` to get cached builds! + (import sources.niv { }).niv ]; in pkgs.mkShell { buildInputs = inputs ++ darwinInputs ++ linuxInputs;