lol

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 rustPlatform, 6 installShellFiles, 7 writableTmpDirAsHomeHook, 8 - git, 9 nixosTests, 10 buildPackages, 11 }: ··· 17 src = fetchFromGitHub { 18 owner = "starship"; 19 repo = "starship"; 20 - rev = "v${finalAttrs.version}"; 21 hash = "sha256-5Euhbuu1uiJ5HJNlPs9sUoGcc5QWqXqNmEH0jpfGLlc="; 22 }; 23 24 nativeBuildInputs = [ installShellFiles ]; 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 - ''; 32 33 postInstall = 34 '' ··· 51 useFetchCargoVendor = true; 52 cargoHash = "sha256-cxDWaPlNK7POJ3GhA21NlJ6q62bqHdA/4sru5pLkvOA="; 53 54 - nativeCheckInputs = [ git ]; 55 - 56 - preCheck = '' 57 - HOME=$TMPDIR 58 - ''; 59 60 passthru.tests = { 61 inherit (nixosTests) starship;
··· 5 rustPlatform, 6 installShellFiles, 7 writableTmpDirAsHomeHook, 8 + gitMinimal, 9 nixosTests, 10 buildPackages, 11 }: ··· 17 src = fetchFromGitHub { 18 owner = "starship"; 19 repo = "starship"; 20 + tag = "v${finalAttrs.version}"; 21 hash = "sha256-5Euhbuu1uiJ5HJNlPs9sUoGcc5QWqXqNmEH0jpfGLlc="; 22 }; 23 24 nativeBuildInputs = [ installShellFiles ]; 25 26 + buildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ 27 + writableTmpDirAsHomeHook 28 + ]; 29 30 postInstall = 31 '' ··· 48 useFetchCargoVendor = true; 49 cargoHash = "sha256-cxDWaPlNK7POJ3GhA21NlJ6q62bqHdA/4sru5pLkvOA="; 50 51 + nativeCheckInputs = [ 52 + gitMinimal 53 + writableTmpDirAsHomeHook 54 + ]; 55 56 passthru.tests = { 57 inherit (nixosTests) starship;