1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-08-17 00:20:44 +03:00

release: give test derivations meaningful names

This commit is contained in:
Emily 2023-08-03 09:47:40 +01:00
parent d3529322dc
commit 75c2925c57

View File

@ -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}