2023-07-07 12:16:38 +01:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchurl
|
|
|
|
, undmg
|
|
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "warp-terminal";
|
2023-12-12 21:43:22 +00:00
|
|
|
version = "0.2023.12.05.08.02.stable_00";
|
2023-07-07 12:16:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://releases.warp.dev/stable/v${finalAttrs.version}/Warp.dmg";
|
2023-12-12 21:43:22 +00:00
|
|
|
hash = "sha256-9olAmczIPRXV15NYCOYmwuEmJ7lMeaQRTTfukaYXMR0=";
|
2023-07-07 12:16:38 +01:00
|
|
|
};
|
2023-12-12 21:43:22 +00:00
|
|
|
|
2023-07-07 12:16:38 +01:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -r *.app $out/Applications
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Rust-based terminal";
|
|
|
|
homepage = "https://www.warp.dev";
|
|
|
|
license = licenses.unfree;
|
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
|
|
maintainers = with maintainers; [ emilytrau Enzime ];
|
|
|
|
platforms = platforms.darwin;
|
|
|
|
};
|
|
|
|
})
|