mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
40 lines
848 B
Nix
40 lines
848 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";
|
|
mainProgram = "gdlv";
|
|
homepage = "https://github.com/aarzilli/gdlv";
|
|
maintainers = with maintainers; [ mmlb ];
|
|
license = licenses.gpl3;
|
|
};
|
|
}
|