mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 20:54:56 +00:00
43 lines
959 B
Nix
43 lines
959 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
undmg,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "git-fork";
|
|
version = "2.57.1";
|
|
src = fetchurl {
|
|
url = "https://cdn.fork.dev/mac/Fork-${finalAttrs.version}.dmg";
|
|
hash = "sha256-hIrR655lCKBDkZS6cF7BD+WMvX13T9180rpAfUYc8YA=";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p "$out/"{bin,Applications}
|
|
mv Fork.app "$out/Applications/"
|
|
ln -s "$out/Applications/Fork.app/Contents/Resources/fork_cli" "$out/bin/fork"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Git client";
|
|
homepage = "https://git-fork.com";
|
|
license = lib.licenses.unfree;
|
|
maintainers = with lib.maintainers; [ dudeofawesome ];
|
|
platforms = lib.platforms.darwin;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
mainProgram = "fork";
|
|
};
|
|
})
|