nixpkgs/pkgs/by-name/gd/gdlv/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
924 B
Nix
Raw Normal View History

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";
version = "1.12.0";
2022-07-25 21:12:02 +00:00
src = fetchFromGitHub {
owner = "aarzilli";
repo = "gdlv";
rev = "v${version}";
hash = "sha256-6NU7bhURdXM4EjVnsXVf9XFOUgHyVEI0kr15q9OnUTQ=";
2022-07-25 21:12:02 +00:00
};
vendorHash = null;
subPackages = ".";
2024-09-03 17:27:37 +00:00
preBuild =
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";
mainProgram = "gdlv";
2022-07-25 21:12:02 +00:00
homepage = "https://github.com/aarzilli/gdlv";
maintainers = with maintainers; [ mmlb ];
license = licenses.gpl3;
};
}