summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-01-21 17:32:48 +0100
committerAndreas Rammhold <andreas@rammhold.de>2020-01-21 17:32:48 +0100
commit406e0c9d511311a8892dffe94ab7198e5e46b2b8 (patch)
tree396e08812aa20deb98ce96e711b2578c0a2d29fa /pkgs/build-support
parentd6a8b55fb0fd9f41f3c83982a5e3a7b7d7a4f01f (diff)
downloadnixpkgs-406e0c9d511311a8892dffe94ab7198e5e46b2b8.tar
nixpkgs-406e0c9d511311a8892dffe94ab7198e5e46b2b8.tar.gz
nixpkgs-406e0c9d511311a8892dffe94ab7198e5e46b2b8.tar.bz2
nixpkgs-406e0c9d511311a8892dffe94ab7198e5e46b2b8.tar.lz
nixpkgs-406e0c9d511311a8892dffe94ab7198e5e46b2b8.tar.xz
nixpkgs-406e0c9d511311a8892dffe94ab7198e5e46b2b8.tar.zst
nixpkgs-406e0c9d511311a8892dffe94ab7198e5e46b2b8.zip
buildRustCrateTests: fix some formatting issues
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/rust/build-rust-crate/test/default.nix22
1 files changed, 11 insertions, 11 deletions
diff --git a/pkgs/build-support/rust/build-rust-crate/test/default.nix b/pkgs/build-support/rust/build-rust-crate/test/default.nix
index aefa279fc5e..1379854d0c1 100644
--- a/pkgs/build-support/rust/build-rust-crate/test/default.nix
+++ b/pkgs/build-support/rust/build-rust-crate/test/default.nix
@@ -1,17 +1,17 @@
 { lib, buildRustCrate, runCommand, writeTextFile, symlinkJoin, callPackage, releaseTools }:
 let
   mkCrate = args: let
-      p = {
-        crateName = "nixtestcrate";
-        version = "0.1.0";
-        authors = [ "Test <test@example.com>" ];
-      } // args;
-    in buildRustCrate p;
-
-    mkFile = destination: text: writeTextFile {
-      name = "src";
-      destination = "/${destination}";
-      inherit text;
+    p = {
+      crateName = "nixtestcrate";
+      version = "0.1.0";
+      authors = [ "Test <test@example.com>" ];
+    } // args;
+  in buildRustCrate p;
+
+  mkFile = destination: text: writeTextFile {
+    name = "src";
+    destination = "/${destination}";
+    inherit text;
   };
 
   mkBin = name: mkFile name ''