Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
}:

let
stableRev = "ca23145d9899c9d4b7f035339e2f21cf3106aa79"; # nixpkgs-rev
stableRev = "e7215ec9581d62b85a3b1b870cd40cc353a06816"; # nixpkgs-rev
stableFetchFromGitHub = fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = stableRev;
hash = "sha256-UxFzpSVQ7zZdd9bPc/sgCkbtSMwJkAKi82tas5FXgFI="; # nixpkgs-hash
hash = "sha256-/PS45tTr/AN2x7rjT/fj1Scc5Fz0WjePt9davTICV8E="; # nixpkgs-hash
};
stableBuiltins = builtins.fetchTarball {
url = ''https://github.com/NixOS/nixpkgs/archive/${stableRev}.tar.gz'';
sha256 = "0ll0ay8v6nkbyfi05409ri4fsiha43xp7kynfxfkdvsh4njp64ak"; # nixpkgs-sha256
sha256 = "1hap08rbsnnpny7kfnplbkj1q9ymwgvlzqxsqxv07z7bskkbix7w"; # nixpkgs-sha256
};
pkgsStableSrc = if fetchFromGitHub != null then stableFetchFromGitHub else stableBuiltins;
pkgsStable = import pkgsStableSrc ({
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 9 additions & 16 deletions modules/kernels/go/kernel.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib
, callPackage
, fetchFromGitHub
, stdenv
, gophernotes

, attrs
Expand All @@ -13,23 +13,16 @@ with lib;
let
common = callPackage ../common.nix {};

gophernotesPatched = gophernotes.overrideAttrs (_oldAttrs: {
src = fetchFromGitHub {
owner = "codedownio";
repo = "gophernotes";
rev = "6b18077f97aa913b73093beeb2152b2d51ee64af";
hash = "sha256-gSD2zUWka3cur5jkv4siYp2gJdxD+00bmJi6BZd0c+c="; # nixpkgs-hash
};

vendorHash = "sha256-bGaXnd0E6dRNiwvGIn7Ptddrt7dRzPfkPThgHPuL2Vo=";

# The upstream tests give the kernel a fixed retry budget to come up on a ZMQ port, which
# isn't long enough on an emulated or loaded builder. The go suite covers the kernel anyway.
doCheck = false;
});
# The upstream tests give the kernel a fixed one second to come up on a ZMQ port, which isn't
# long enough under the QEMU emulation our aarch64-linux builds run in; the connect fails with
# ECONNREFUSED. Everywhere else leave the derivation exactly as nixpkgs ships it, so it can be
# substituted from cache.nixos.org rather than rebuilt. The go suite covers the kernel anyway.
gophernotes' = if stdenv.hostPlatform.system == "aarch64-linux"
then gophernotes.overrideAttrs (_oldAttrs: { doCheck = false; })
else gophernotes;

argv = [
"${gophernotesPatched}/bin/gophernotes"
"${gophernotes'}/bin/gophernotes"
"{connection_file}"
];

Expand Down
Loading