buildRustCrateTests: fix some formatting issues

This commit is contained in:
Andreas Rammhold 2020-01-21 17:32:48 +01:00
parent d6a8b55fb0
commit 406e0c9d51
No known key found for this signature in database
GPG Key ID: E432E410B5E48C86

View File

@ -1,17 +1,17 @@
{ lib, buildRustCrate, runCommand, writeTextFile, symlinkJoin, callPackage, releaseTools }: { lib, buildRustCrate, runCommand, writeTextFile, symlinkJoin, callPackage, releaseTools }:
let let
mkCrate = args: let mkCrate = args: let
p = { p = {
crateName = "nixtestcrate"; crateName = "nixtestcrate";
version = "0.1.0"; version = "0.1.0";
authors = [ "Test <test@example.com>" ]; authors = [ "Test <test@example.com>" ];
} // args; } // args;
in buildRustCrate p; in buildRustCrate p;
mkFile = destination: text: writeTextFile { mkFile = destination: text: writeTextFile {
name = "src"; name = "src";
destination = "/${destination}"; destination = "/${destination}";
inherit text; inherit text;
}; };
mkBin = name: mkFile name '' mkBin = name: mkFile name ''