Skip to content

Commit 787af0f

Browse files
committed
kitty: make possible to override goModules
go-modules name had to be changed to goModules so it becomes a env var (bash vars can't contain -) enables overriding the build without overriding configurePhase ``` pkgs.kitty.overrideAttrs (finalAttrs: previousAttrs: { name = "kitty-master"; version = "master"; src = pkgs.fetchFromGitHub { owner = "kovidgoyal"; repo = "kitty"; rev = "66a2efd191f98a1a5b3c2d4fdc9569204b445a2f"; sha256 = "sha256-pJuhnJOjGBflHXOOYKrg9/e3c+VGEESZtfka84ARCd4="; }; goModules = (pkgs.buildGoModule { pname = "kitty-go-modules"; inherit (finalAttrs) src version; vendorHash = "sha256-eAovZ/7JnvXlnlFyt0skhYJ1Nrzy2XCpRlQvSmWCyaY="; }).go-modules; }) ```
1 parent aafa2b2 commit 787af0f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkgs/applications/terminal-emulators/kitty/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ buildPythonApplication rec {
100100
CGO_ENABLED = 0;
101101
GOFLAGS = "-trimpath";
102102

103-
go-modules = (buildGoModule {
103+
goModules = (buildGoModule {
104104
pname = "kitty-go-modules";
105105
inherit src vendorHash version;
106106
}).go-modules;
@@ -109,7 +109,7 @@ buildPythonApplication rec {
109109
export GOCACHE=$TMPDIR/go-cache
110110
export GOPATH="$TMPDIR/go"
111111
export GOPROXY=off
112-
cp -r --reflink=auto ${go-modules} vendor
112+
cp -r --reflink=auto $goModules vendor
113113
'';
114114

115115
buildPhase = let

0 commit comments

Comments
 (0)