mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 10:47:19 +00:00
release: give test derivations meaningful names
This commit is contained in:
parent
d3529322dc
commit
75c2925c57
1 changed files with 5 additions and 1 deletions
|
@ -19,6 +19,10 @@ let
|
|||
|
||||
makeTest = test:
|
||||
let
|
||||
testName =
|
||||
builtins.replaceStrings [ ".nix" ] [ "" ]
|
||||
(builtins.baseNameOf test);
|
||||
|
||||
configuration =
|
||||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
|
@ -36,7 +40,7 @@ let
|
|||
};
|
||||
|
||||
config = {
|
||||
system.build.run-test = pkgs.runCommand "darwin-test"
|
||||
system.build.run-test = pkgs.runCommand "darwin-test-${testName}"
|
||||
{ allowSubstitutes = false; preferLocalBuild = true; }
|
||||
''
|
||||
#! ${pkgs.stdenv.shell}
|
||||
|
|
Loading…
Add table
Reference in a new issue