nixpkgs/pkgs/development/tools/gdlv/default.nix

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

39 lines
822 B
Nix
Raw Normal View History

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