5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
38 lines
822 B
Nix
38 lines
822 B
Nix
{ lib
|
|
, stdenv
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, Foundation
|
|
, CoreGraphics
|
|
, Metal
|
|
, AppKit
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gdlv";
|
|
version = "1.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aarzilli";
|
|
repo = "gdlv";
|
|
rev = "v${version}";
|
|
hash = "sha256-OPsQOFwV6jIX4ZOVwJmpTeQUr/zkfkqCr86HmPhYarI=";
|
|
};
|
|
|
|
preBuild = lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11.0") ''
|
|
export MACOSX_DEPLOYMENT_TARGET=10.15
|
|
'';
|
|
|
|
vendorHash = null;
|
|
|
|
subPackages = ".";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Foundation CoreGraphics Metal AppKit ];
|
|
|
|
meta = with lib; {
|
|
description = "GUI frontend for Delve";
|
|
homepage = "https://github.com/aarzilli/gdlv";
|
|
maintainers = with maintainers; [ mmlb ];
|
|
license = licenses.gpl3;
|
|
};
|
|
}
|