mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
treewide: remove obsolete attribute goPackagePath in buildGoModule derivations (#95092)
The buildGoModule infrastructure does not make use of goPackagePath it is a residue from buildGoPackage.
This commit is contained in:
parent
4c3b64adf4
commit
ba7c0893d4
|
@ -5,7 +5,6 @@ buildGoModule rec {
|
|||
version = "3.0.0";
|
||||
k3sVersion = "1.18.6-k3s1";
|
||||
|
||||
goPackagePath = "github.com/rancher/k3d";
|
||||
excludedPackages = ''tools'';
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -4,8 +4,6 @@ buildGoModule rec {
|
|||
pname = "gomuks";
|
||||
version = "0.1.2";
|
||||
|
||||
goPackagePath = "maunium.net/go/gomuks";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tulir";
|
||||
repo = pname;
|
||||
|
|
|
@ -4,7 +4,6 @@ buildGoModule rec {
|
|||
pname = "git-bug";
|
||||
version = "0.7.1"; # the `rev` below pins the version of the source to get
|
||||
rev = "2d64b85db71a17ff3277bbbf7ac9d8e81f8e416c";
|
||||
goPackagePath = "github.com/MichaelMure/git-bug";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
|
@ -19,9 +18,9 @@ buildGoModule rec {
|
|||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X ${goPackagePath}/commands.GitCommit=${rev}
|
||||
-X ${goPackagePath}/commands.GitLastTag=${version}
|
||||
-X ${goPackagePath}/commands.GitExactTag=${version}
|
||||
-X github.com/MichaelMure/git-bug/commands.GitCommit=${rev}
|
||||
-X github.com/MichaelMure/git-bug/commands.GitLastTag=${version}
|
||||
-X github.com/MichaelMure/git-bug/commands.GitExactTag=${version}
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
|
|
@ -9,11 +9,10 @@ let
|
|||
buildWorker = src: buildGoModule {
|
||||
inherit src version;
|
||||
pname = "builds-sr-ht-worker";
|
||||
goPackagePath = "git.sr.ht/~sircmpwn/builds.sr.ht/worker";
|
||||
|
||||
vendorSha256 = "0prdlihcy5yz760llwyby747yy2981dn3gy401a48df7ndlfj6lp";
|
||||
vendorSha256 = "0prdlihcy5yz760llwyby747yy2981dn3gy401a48df7ndlfj6lp";
|
||||
|
||||
doCheck = false;
|
||||
doCheck = false;
|
||||
};
|
||||
in buildPythonPackage rec {
|
||||
inherit version;
|
||||
|
|
|
@ -9,41 +9,37 @@ let
|
|||
buildShell = src: buildGoModule {
|
||||
inherit src version;
|
||||
pname = "gitsrht-shell";
|
||||
goPackagePath = "git.sr.ht/~sircmpwn/git.sr.ht/gitsrht-shell";
|
||||
|
||||
vendorSha256 = "1zvbqn4r940mibn4h1cqz94gbr476scm281ps361n0rfqlimw8g5";
|
||||
vendorSha256 = "1zvbqn4r940mibn4h1cqz94gbr476scm281ps361n0rfqlimw8g5";
|
||||
|
||||
doCheck = false;
|
||||
doCheck = false;
|
||||
};
|
||||
|
||||
buildDispatcher = src: buildGoModule {
|
||||
inherit src version;
|
||||
pname = "gitsrht-dispatcher";
|
||||
goPackagePath = "git.sr.ht/~sircmpwn/git.sr.ht/gitsrht-dispatch";
|
||||
|
||||
vendorSha256 = "1lzkf13m54pq0gnn3bcxc80nfg76hgck4l8q8jpaicrsiwgcyrd9";
|
||||
vendorSha256 = "1lzkf13m54pq0gnn3bcxc80nfg76hgck4l8q8jpaicrsiwgcyrd9";
|
||||
|
||||
doCheck = false;
|
||||
doCheck = false;
|
||||
};
|
||||
|
||||
buildKeys = src: buildGoModule {
|
||||
inherit src version;
|
||||
pname = "gitsrht-keys";
|
||||
goPackagePath = "git.sr.ht/~sircmpwn/git.sr.ht/gitsrht-keys";
|
||||
|
||||
vendorSha256 = "16j7kpar318s4766pln8xn6d51xqblwig5n1jywhj0sl80qjl5cv";
|
||||
vendorSha256 = "16j7kpar318s4766pln8xn6d51xqblwig5n1jywhj0sl80qjl5cv";
|
||||
|
||||
doCheck = false;
|
||||
doCheck = false;
|
||||
};
|
||||
|
||||
buildUpdateHook = src: buildGoModule {
|
||||
inherit src version;
|
||||
pname = "gitsrht-update-hook";
|
||||
goPackagePath = "git.sr.ht/~sircmpwn/git.sr.ht/gitsrht-update-hook";
|
||||
|
||||
vendorSha256 = "1rmv3p60g6w4h4v9wx99jkyx0q02snslyjrjy9n1flardjs01b63";
|
||||
vendorSha256 = "1rmv3p60g6w4h4v9wx99jkyx0q02snslyjrjy9n1flardjs01b63";
|
||||
|
||||
doCheck = false;
|
||||
doCheck = false;
|
||||
};
|
||||
in buildPythonPackage rec {
|
||||
inherit version;
|
||||
|
|
|
@ -5,7 +5,6 @@ in buildGoModule rec {
|
|||
inherit version;
|
||||
pname = "drone-cli";
|
||||
revision = "v${version}";
|
||||
goPackagePath = "github.com/drone/drone-cli";
|
||||
|
||||
vendorSha256 = "1ryh94cj37j8x6qwxr5ydyw6cnjppakg1w84sipm11d0vvv98bhi";
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
buildGoModule rec {
|
||||
name = "drone.io-${version}";
|
||||
version = "1.9.0";
|
||||
goPackagePath = "github.com/drone/drone";
|
||||
|
||||
vendorSha256 = "0idf11sr417lxcjryplgb87affr6lgzxazzlyvk0y40hp8zbhwsx";
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ buildGoModule rec {
|
|||
version = "1.1.2";
|
||||
rev = "v${version}";
|
||||
|
||||
goPackagePath = "github.com/rogpeppe/godef";
|
||||
subPackages = [ "." ];
|
||||
|
||||
vendorSha256 = null;
|
||||
|
|
|
@ -8,8 +8,6 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
goPackagePath = "github.com/fatih/gomodifytags";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fatih";
|
||||
repo = "gomodifytags";
|
||||
|
|
|
@ -4,8 +4,6 @@ buildGoModule rec {
|
|||
pname = "gopkgs";
|
||||
version = "2.1.2";
|
||||
|
||||
goPackagePath = "github.com/uudashr/gopkgs";
|
||||
|
||||
subPackages = [ "cmd/gopkgs" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -4,8 +4,6 @@ buildGoModule rec {
|
|||
pname = "gosec";
|
||||
version = "2.4.0";
|
||||
|
||||
goPackagePath = "github.com/securego/gosec";
|
||||
|
||||
subPackages = [ "cmd/gosec" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -4,8 +4,6 @@ buildGoModule rec {
|
|||
pname = "hcloud";
|
||||
version = "1.17.0";
|
||||
|
||||
goPackagePath = "github.com/hetznercloud/cli";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hetznercloud";
|
||||
repo = "cli";
|
||||
|
|
|
@ -17,7 +17,6 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
goPackagePath = "sigs.k8s.io/kind";
|
||||
subPackages = [ "." ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
|
|
@ -15,10 +15,9 @@ buildGoModule rec {
|
|||
export buildFlagsArray+=(
|
||||
"-ldflags=
|
||||
-w -s
|
||||
-X ${goPackagePath}/pkg/version.Version=${version}")
|
||||
-X github.com/jlesquembre/kubeprompt/pkg/version.Version=${version}")
|
||||
'';
|
||||
|
||||
goPackagePath = "github.com/jlesquembre/kubeprompt";
|
||||
vendorSha256 = "089lfkvyf00f05kkmr935jbrddf2c0v7m2356whqnz7ad6a2whsi";
|
||||
|
||||
doCheck = false;
|
||||
|
|
|
@ -15,10 +15,8 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
goPackagePath = "github.com/FiloSottile/mkcert";
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
-X ${goPackagePath}/main.Version=${version}
|
||||
-ldflags=-X main.Version=v${version}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -11,7 +11,6 @@ buildGoModule rec {
|
|||
sha256 = "106k4234gpi8mr0n0rfsgwk4z7v0b2gim0r5bhjvg2v566j67g02";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/Mic92/nix-build-uncached";
|
||||
vendorSha256 = null;
|
||||
|
||||
doCheck = false;
|
||||
|
|
|
@ -12,7 +12,6 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
goPackagePath = "github.com/davidrjenni/reftools";
|
||||
excludedPackages = "\\(cmd/fillswitch/test-fixtures\\)";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -4,8 +4,6 @@ buildGoModule rec {
|
|||
pname = "caddy";
|
||||
version = "1.0.5";
|
||||
|
||||
goPackagePath = "github.com/caddyserver/caddy";
|
||||
|
||||
subPackages = [ "caddy" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -4,8 +4,6 @@ buildGoModule rec {
|
|||
pname = "coredns";
|
||||
version = "1.7.0";
|
||||
|
||||
goPackagePath = "github.com/coredns/coredns";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coredns";
|
||||
repo = "coredns";
|
||||
|
|
|
@ -7,7 +7,6 @@ buildGoModule rec {
|
|||
src = hasura-graphql-engine.src;
|
||||
modRoot = "./cli";
|
||||
|
||||
goPackagePath = "github.com/hasura/graphql-engine/cli";
|
||||
subPackages = [ "cmd/hasura" ];
|
||||
|
||||
vendorSha256 = "0a3mlkl00r680v8x3hy24ykggq5qm7k3101krlyfrb5y4karp75a";
|
||||
|
|
|
@ -4,8 +4,6 @@ buildGoModule rec {
|
|||
pname = "kapow";
|
||||
version = "0.5.4";
|
||||
|
||||
goPackagePath = "github.com/BBVA/kapow";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -4,7 +4,6 @@ buildGoModule rec {
|
|||
pname = "matterbridge";
|
||||
version = "1.17.5";
|
||||
|
||||
goPackagePath = "github.com/42wim/matterbridge";
|
||||
vendorSha256 = null;
|
||||
|
||||
doCheck = false;
|
||||
|
|
|
@ -7,8 +7,6 @@ let
|
|||
version = "5.21.0";
|
||||
shortRev = "3a1ac58"; # for internal version info
|
||||
|
||||
goPackagePath = "github.com/sensu/sensu-go";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sensu";
|
||||
repo = "sensu-go";
|
||||
|
|
|
@ -4,8 +4,6 @@ buildGoModule rec {
|
|||
pname = "telegraf";
|
||||
version = "1.15.2";
|
||||
|
||||
goPackagePath = "github.com/influxdata/telegraf";
|
||||
|
||||
excludedPackages = "test";
|
||||
|
||||
subPackages = [ "cmd/telegraf" ];
|
||||
|
|
|
@ -15,7 +15,6 @@ buildGoModule rec {
|
|||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
goPackagePath = "tailscale.com";
|
||||
vendorSha256 = "0l9lzwwvshg9a2kmmq1cvvlaxncbas78a9hjhvjjar89rjr2k2sv";
|
||||
|
||||
doCheck = false;
|
||||
|
|
|
@ -17,8 +17,6 @@ buildGoModule rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
goPackagePath = "github.com/b4b4r07/history";
|
||||
|
||||
postInstall = ''
|
||||
install -d $out/share
|
||||
cp -r "$NIX_BUILD_TOP/source/misc/"* "$out/share"
|
||||
|
|
|
@ -4,8 +4,6 @@ buildGoModule rec {
|
|||
pname = "iamy";
|
||||
version = "2.3.2";
|
||||
|
||||
goPackagePath = "github.com/99designs/iamy";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "99designs";
|
||||
repo = "iamy";
|
||||
|
|
|
@ -11,14 +11,13 @@ buildGoModule rec {
|
|||
sha256 = "0qyfv6h6m86m5bwayj0s1pjldnbagy63zc2ygzpnicihmd58khny";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/Dreamacro/clash";
|
||||
vendorSha256 = "0ap6wsx23s4q730s6d5cgc4ginh8zj5sd32k0za49fh50v8k8zbh";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags="
|
||||
"-X ${goPackagePath}/constant.Version=${version}"
|
||||
"-X github.com/Dreamacro/clash/constant.Version=${version}"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
|
@ -11,7 +11,6 @@ buildGoModule rec {
|
|||
sha256 = "14s5cl1g0rgqj7fj699xgz2kmkzym1zpckhv3h33ypsn4dq7gjh2";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/raphaelreyna/oneshot";
|
||||
vendorSha256 = "0v53dsj0w959pmvk6v1i7rwlfd2y0vrghxlwkgidw0sf775qpgvy";
|
||||
|
||||
doCheck = false;
|
||||
|
|
|
@ -11,8 +11,6 @@ buildGoModule rec {
|
|||
sha256 = "125mw70jidbp436arhv77201jdp6mpgqa2dzmrpmk55f9bf29sg6";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/SrKomodo/shadowfox-updater";
|
||||
|
||||
vendorSha256 = "06ar9ivry9b01609izjbl6hqgg0cy7aqd8n2cqpyq0g7my0l0lbj";
|
||||
|
||||
doCheck = false;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
buildGoModule rec {
|
||||
pname = "age";
|
||||
version = "1.0.0-beta4";
|
||||
goPackagePath = "github.com/FiloSottile/age";
|
||||
vendorSha256 = "0km7a2826j3fk2nrkmgc990chrkcfz006wfw14yilsa4p2hmfl7m";
|
||||
|
||||
doCheck = false;
|
||||
|
|
Loading…
Reference in a new issue