Skip to content

Commit caac780

Browse files
committed
pkgs/alioth: 0.4.0 -> 0.5.0
1 parent 63f6d81 commit caac780

File tree

3 files changed

+16
-72
lines changed

3 files changed

+16
-72
lines changed

flake.lock

Lines changed: 3 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,14 @@
88

99
inputs = {
1010
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
11-
fenix = {
12-
url = "github:nix-community/fenix";
13-
inputs.nixpkgs.follows = "nixpkgs";
14-
};
1511
flake-utils.url = "github:numtide/flake-utils";
1612
spectrum = {
1713
url = "git+https://spectrum-os.org/git/spectrum";
1814
flake = false;
1915
};
2016
};
2117

22-
outputs = { self, nixpkgs, fenix, flake-utils, spectrum }:
18+
outputs = { self, nixpkgs, flake-utils, spectrum }:
2319
let
2420
systems = [
2521
"x86_64-linux"
@@ -98,7 +94,6 @@
9894
pkgs = import nixpkgs {
9995
overlays = [ self.overlay ];
10096
};
101-
rustNightly = fenix.packages.${system}.minimal.toolchain;
10297
in {
10398
build-microvm = pkgs.callPackage ./pkgs/build-microvm.nix { inherit self; };
10499
doc = pkgs.callPackage ./pkgs/doc.nix { inherit nixpkgs; };
@@ -123,12 +118,7 @@
123118
ignoreCollisions = true;
124119
};
125120
waypipe = overrideWaypipe pkgs;
126-
alioth = pkgs.callPackage ./pkgs/alioth.nix {
127-
rustPlatform = pkgs.makeRustPlatform {
128-
cargo = rustNightly;
129-
rustc = rustNightly;
130-
};
131-
};
121+
alioth = pkgs.callPackage ./pkgs/alioth.nix {};
132122
} //
133123
# wrap self.nixosConfigurations in executable packages
134124
builtins.foldl' (result: systemName:
@@ -159,16 +149,7 @@
159149
overlay = final: prev: {
160150
cloud-hypervisor-graphics = prev.callPackage (spectrum + "/pkgs/cloud-hypervisor") {};
161151
waypipe = overrideWaypipe prev;
162-
alioth =
163-
let
164-
rustNightly = fenix.packages.${final.system}.minimal.toolchain;
165-
in
166-
prev.callPackage ./pkgs/alioth.nix {
167-
rustPlatform = final.makeRustPlatform {
168-
cargo = rustNightly;
169-
rustc = rustNightly;
170-
};
171-
};
152+
alioth = prev.callPackage ./pkgs/alioth.nix {};
172153
};
173154
overlays.default = self.overlay;
174155

pkgs/alioth.nix

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
# TODO: upstream to nixpkgs once it no longer requires rust nightly
21
{ lib, fetchFromGitHub, rustPlatform }:
32

43
rustPlatform.buildRustPackage rec {
54
pname = "alioth";
6-
version = "0.4.0";
5+
version = "0.5.0";
76

87
src = fetchFromGitHub {
98
owner = "google";
10-
repo = pname;
11-
rev = "v${version}";
12-
hash = "sha256-Dyev6cZSCzia9PN2+QiiqARCt/OT9NcGnrgF7womvUg=";
9+
repo = "alioth";
10+
rev = "refs/tags/v${version}";
11+
hash = "sha256-K0Hx6EJYyPJZA+FLIj44BtUuZZOqWW2DUJt1QbeZyu0=";
1312
};
1413

15-
cargoHash = "sha256-4oN0v77VQHpyS/fXefYQPuslBAkDuTpjNPE1UiQ/Rz0=";
14+
cargoHash = "sha256-J+1SXHQJJxT0qN/ELAvwQFnKCo13ZrQClpbfleM4PkA=";
15+
1616
separateDebugInfo = true;
1717

18-
# TODO: Broken
19-
doCheck = false;
18+
checkFlags = [
19+
# "test did not panic as expected"
20+
"--skip" "test_align_up_panic"
21+
];
2022

2123
meta = with lib; {
2224
homepage = "https://github.com/google/alioth";

0 commit comments

Comments
 (0)