2024-09-03 17:27:37 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
2024-09-03 18:06:13 +00:00
|
|
|
AppKit,
|
2024-09-03 17:27:37 +00:00
|
|
|
CoreGraphics,
|
2024-09-03 18:06:13 +00:00
|
|
|
Foundation,
|
2024-09-03 17:27:37 +00:00
|
|
|
Metal,
|
2022-10-17 11:09:59 +00:00
|
|
|
}:
|
2022-07-25 21:12:02 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gdlv";
|
2024-09-03 18:09:52 +00:00
|
|
|
version = "1.12.0";
|
2022-07-25 21:12:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aarzilli";
|
|
|
|
repo = "gdlv";
|
|
|
|
rev = "v${version}";
|
2024-09-03 18:09:52 +00:00
|
|
|
hash = "sha256-6NU7bhURdXM4EjVnsXVf9XFOUgHyVEI0kr15q9OnUTQ=";
|
2022-07-25 21:12:02 +00:00
|
|
|
};
|
|
|
|
|
2024-09-03 18:09:52 +00:00
|
|
|
vendorHash = null;
|
|
|
|
subPackages = ".";
|
|
|
|
|
2024-09-03 17:27:37 +00:00
|
|
|
preBuild =
|
2024-09-24 15:51:25 +00:00
|
|
|
lib.optionalString
|
|
|
|
(stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11.0")
|
2024-09-03 17:27:37 +00:00
|
|
|
''
|
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.15
|
|
|
|
'';
|
2023-09-15 01:57:17 +00:00
|
|
|
|
2024-09-03 17:27:37 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-09-03 18:06:13 +00:00
|
|
|
AppKit
|
2024-09-03 17:27:37 +00:00
|
|
|
CoreGraphics
|
2024-09-03 18:06:13 +00:00
|
|
|
Foundation
|
2024-09-03 17:27:37 +00:00
|
|
|
Metal
|
|
|
|
];
|
2022-07-25 21:12:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GUI frontend for Delve";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "gdlv";
|
2022-07-25 21:12:02 +00:00
|
|
|
homepage = "https://github.com/aarzilli/gdlv";
|
|
|
|
maintainers = with maintainers; [ mmlb ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|