summary refs log tree commit diff
path: root/pkgs/tools/misc/lorri
diff options
context:
space:
mode:
authorLeonhard Markert <curiousleo@users.noreply.github.com>2020-01-09 17:02:17 +0100
committerLeonhard Markert <curiousleo@users.noreply.github.com>2020-01-10 11:26:38 +0100
commitc976dc165b69c30f54d8fd42ec541285c598a345 (patch)
tree1f39c63dc76107e81ba1bbf6da332c402bfb7473 /pkgs/tools/misc/lorri
parent5934692d6ace01ac304e13d1dedd174b0e78970f (diff)
downloadnixpkgs-c976dc165b69c30f54d8fd42ec541285c598a345.tar
nixpkgs-c976dc165b69c30f54d8fd42ec541285c598a345.tar.gz
nixpkgs-c976dc165b69c30f54d8fd42ec541285c598a345.tar.bz2
nixpkgs-c976dc165b69c30f54d8fd42ec541285c598a345.tar.lz
nixpkgs-c976dc165b69c30f54d8fd42ec541285c598a345.tar.xz
nixpkgs-c976dc165b69c30f54d8fd42ec541285c598a345.tar.zst
nixpkgs-c976dc165b69c30f54d8fd42ec541285c598a345.zip
lorri: unstable-2019-10-30 -> unstable-2020-01-09
`rustfmt` is now a compile time dependency because the varlink generated
code is formatted with it.
Diffstat (limited to 'pkgs/tools/misc/lorri')
-rw-r--r--pkgs/tools/misc/lorri/default.nix10
-rw-r--r--pkgs/tools/misc/lorri/runtime.nix35
2 files changed, 25 insertions, 20 deletions
diff --git a/pkgs/tools/misc/lorri/default.nix b/pkgs/tools/misc/lorri/default.nix
index 8be6cf5a8a3..ea0bbe3dfe2 100644
--- a/pkgs/tools/misc/lorri/default.nix
+++ b/pkgs/tools/misc/lorri/default.nix
@@ -14,7 +14,7 @@
 
 rustPlatform.buildRustPackage rec {
   pname = "lorri";
-  version = "unstable-2019-10-30";
+  version = "unstable-2020-01-09";
 
   meta = with stdenv.lib; {
     description = "Your project's nix-env";
@@ -27,17 +27,17 @@ rustPlatform.buildRustPackage rec {
     owner = "target";
     repo = pname;
     # Run `eval $(nix-build -A lorri.updater)` after updating the revision!
-    rev = "03f10395943449b1fc5026d3386ab8c94c520ee3";
-    sha256 = "0fcl79ndaziwd8d74mk1lsijz34p2inn64b4b4am3wsyk184brzq";
+    rev = "7b84837b9988d121dd72178e81afd440288106c5";
+    sha256 = "0rkga944jl6i0051vbsddfqbvzy12168cbg4ly2ng1rk0x97dbr8";
   };
 
-  cargoSha256 = "1daff4plh7hwclfp21hkx4fiflh9r80y2c7k2sd3zm4lmpy0jpfz";
+  cargoSha256 = "0k7l0zhk2vzf4nlwv4xr207irqib2dqjxfdjk1fprff84c4kblx8";
   doCheck = false;
 
   BUILD_REV_COUNT = src.revCount or 1;
   RUN_TIME_CLOSURE = pkgs.callPackage ./runtime.nix {};
 
-  nativeBuildInputs = with pkgs; [ nix direnv which ];
+  nativeBuildInputs = with pkgs; [ rustPackages.rustfmt ];
   buildInputs =
     stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ];
 
diff --git a/pkgs/tools/misc/lorri/runtime.nix b/pkgs/tools/misc/lorri/runtime.nix
index 71bc89b5af3..96b14b26e82 100644
--- a/pkgs/tools/misc/lorri/runtime.nix
+++ b/pkgs/tools/misc/lorri/runtime.nix
@@ -1,9 +1,13 @@
 {
   # Plumbing tools:
-  closureInfo, runCommand, writeText, buildEnv,
-
-  # Actual dependencies to propagate:
-  bash, coreutils }:
+  closureInfo
+, runCommand
+, writeText
+, buildEnv
+, # Actual dependencies to propagate:
+  bash
+, coreutils
+}:
 let
   tools = buildEnv {
     name = "lorri-runtime-tools";
@@ -15,19 +19,20 @@ let
   };
 
   closureToNix = runCommand "closure.nix" {}
-  ''
-    (
-      echo '{ dep, ... }: ['
-      sed -E 's/^(.*)$/    (dep \1)/' ${runtimeClosureInfo}/store-paths
-      echo ']'
-    ) > $out
-  '';
+    ''
+      (
+        echo '{ dep, ... }: ['
+        sed -E 's/^(.*)$/    (dep \1)/' ${runtimeClosureInfo}/store-paths
+        echo ']'
+      ) > $out
+    '';
 
   runtimeClosureInfoAsNix = runCommand "runtime-closure.nix" {
     runtime_closure_list = closureToNix;
     tools_build_host = tools;
   }
-  ''
-    substituteAll ${./runtime-closure.nix.template} $out
-  '';
-in runtimeClosureInfoAsNix
+    ''
+      substituteAll ${./runtime-closure.nix.template} $out
+    '';
+in
+runtimeClosureInfoAsNix