mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
29 lines
814 B
Nix
29 lines
814 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-graft";
|
|
version = "0.2.19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mzz2017";
|
|
repo = "gg";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-DXW0NtFYvcCX4CgMs5/5HPaO9f9eFtw401wmJdCbHPU=";
|
|
};
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
ldflags = [ "-X github.com/mzz2017/gg/cmd.Version=${version}" "-s" "-w" ];
|
|
vendorHash = "sha256-fnM4ycqDyruCdCA1Cr4Ki48xeQiTG4l5dLVuAafEm14=";
|
|
subPackages = [ "." ];
|
|
|
|
meta = with lib; {
|
|
description = "Command-line tool for one-click proxy in your research and development without installing v2ray or anything else";
|
|
homepage = "https://github.com/mzz2017/gg";
|
|
license = licenses.agpl3Plus;
|
|
maintainers = with maintainers; [ xyenon ];
|
|
mainProgram = "gg";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|