about summary refs log tree commit diff
path: root/third_party/immer/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-07-15T07·30+0100
committertazjin <mail@tazj.in>2020-07-15T18·39+0000
commit3fcebfdaa1bedea6d40fe90cdf4885c2b5d36da2 (patch)
tree0a275c90b5bd0ff420a965f3d4c0293ac24a06c9 /third_party/immer/default.nix
parent3bf0e2bddc9b5bd78fbe0722349d16182a93ac6f (diff)
chore(3p/immer): Amend derivation to work in depot r/1303
Change-Id: If580b76b7b7170ce7840d3a97c3a547c29405a6f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1174
Tested-by: BuildkiteCI
Reviewed-by: Kane York <rikingcoding@gmail.com>
Diffstat (limited to 'third_party/immer/default.nix')
-rw-r--r--third_party/immer/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/third_party/immer/default.nix b/third_party/immer/default.nix
index 2eb7dbb1f80b..f9225f9fd713 100644
--- a/third_party/immer/default.nix
+++ b/third_party/immer/default.nix
@@ -1,12 +1,12 @@
-with import <nixpkgs> {};
+{ pkgs, lib, ... }:
 
-stdenv.mkDerivation rec {
+pkgs.llvmPackages.libcxxStdenv.mkDerivation rec {
   name = "immer-git";
   version = "git";
-  src = fetchGit ./.;
-  nativeBuildInputs = [ cmake ];
+  src = ./.;
+  nativeBuildInputs = [ pkgs.cmake ];
   dontBuild = true;
-  meta = with stdenv.lib; {
+  meta = with lib; {
     homepage    = "https://github.com/arximboldi/immer";
     description = "Postmodern immutable data structures for C++";
     license     = licenses.boost;