starship: cleanup (#402349)

authored by

Pol Dellaiera and committed by
GitHub
dfaa22e8 c678a551

+9 -13
+9 -13
pkgs/by-name/st/starship/package.nix
··· 5 5 rustPlatform, 6 6 installShellFiles, 7 7 writableTmpDirAsHomeHook, 8 - git, 8 + gitMinimal, 9 9 nixosTests, 10 10 buildPackages, 11 11 }: ··· 17 17 src = fetchFromGitHub { 18 18 owner = "starship"; 19 19 repo = "starship"; 20 - rev = "v${finalAttrs.version}"; 20 + tag = "v${finalAttrs.version}"; 21 21 hash = "sha256-5Euhbuu1uiJ5HJNlPs9sUoGcc5QWqXqNmEH0jpfGLlc="; 22 22 }; 23 23 24 24 nativeBuildInputs = [ installShellFiles ]; 25 25 26 - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ writableTmpDirAsHomeHook ]; 27 - 28 - # tries to access HOME only in aarch64-darwin environment when building mac-notification-sys 29 - preBuild = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' 30 - export HOME=$TMPDIR 31 - ''; 26 + buildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ 27 + writableTmpDirAsHomeHook 28 + ]; 32 29 33 30 postInstall = 34 31 '' ··· 51 48 useFetchCargoVendor = true; 52 49 cargoHash = "sha256-cxDWaPlNK7POJ3GhA21NlJ6q62bqHdA/4sru5pLkvOA="; 53 50 54 - nativeCheckInputs = [ git ]; 55 - 56 - preCheck = '' 57 - HOME=$TMPDIR 58 - ''; 51 + nativeCheckInputs = [ 52 + gitMinimal 53 + writableTmpDirAsHomeHook 54 + ]; 59 55 60 56 passthru.tests = { 61 57 inherit (nixosTests) starship;