-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: pgadmin-init in pgadmin-8.2, the command to setup configuration db is `setup-db` * fix: add grafana overlay grafana 10.3.3 from upstream nixpkgs doesn’t work in darwin * chore: free up space in ubuntu-latest --------- Co-authored-by: shivaraj-bh <[email protected]>
- Loading branch information
1 parent
9cdee29
commit e0a1074
Showing
5 changed files
with
51 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[ | ||
(import ./pgadmin.nix) | ||
(import ./grafana.nix) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
(final: prev: { | ||
grafana = (prev.callPackage "${prev.path}/pkgs/servers/monitoring/grafana" { | ||
buildGoModule = args: prev.buildGoModule (args // { | ||
|
||
vendorHash = "sha256-Ig7Vj3HzMVOjT6Tn8aS4W000uKGoPOCFh2yIfyEWn78="; | ||
|
||
proxyVendor = true; | ||
|
||
offlineCache = args.offlineCache.overrideAttrs (oa: { | ||
buildPhase = final.lib.replaceStrings | ||
[ "yarn config set --json supportedArchitectures.os '[ \"linux\" ]'" ] | ||
[ "yarn config set --json supportedArchitectures.os '[ \"linux\", \"darwin\" ]'" ] | ||
oa.buildPhase; | ||
|
||
outputHash = | ||
if final.stdenv.isLinux then | ||
"sha256-IlNe89T6cfXGy1WY73Yd+wg1bt9UuBCkKSDkrazybQM=" | ||
else | ||
"sha256-pqInPfZEg2tcp8BXg1nnMddRZ1yyZ6KQa2flWd4IZSU="; | ||
}); | ||
|
||
# exclude the package instead of `rm pkg/util/xorm/go.{mod,sum}` | ||
# turns out, only removing the files is not enough, fails with: | ||
# > pkg/services/sqlstore/migrator/dialect.go:9:2: module ./pkg/util/xorm: reading pkg/util/xorm/go.mod: open /build/source/pkg/util/xorm/go.mod: no such file or directory | ||
|
||
# both excluding and removing (`go.mod`) is also not an option because excludedPackages expects a `go.mod` | ||
excludedPackages = args.excludedPackages ++ [ "xorm" ]; | ||
|
||
postConfigure = final.lib.replaceStrings [ "rm pkg/util/xorm/go.{mod,sum}" ] [ "" ] args.postConfigure; | ||
}); | ||
}); | ||
}) |