nix-community / nixpkgs-wayland

Automated, pre-built packages for Wayland (sway/wlroots) tools for NixOS. [maintainers=@colemickens, @Artturin]
502 stars 45 forks source link

`master` build is broken - but builds locally? #364

Closed colemickens closed 1 year ago

colemickens commented 1 year ago

This is bizarre:

trying https://github.com/Osleg/gebaar-libinput-fork/archive/6ce14eb64a9f4bb8201bae26052521ae5e64f553.tar.gz
100 24180    0 24180    0     0   112k      0 --:--:-- --:--:-- --:--:--  112k
unpacking source archive /build/6ce14eb64a9f4bb8201bae26052521ae5e64f553.tar.gz
error: hash mismatch in fixed-output derivation '/nix/store/ip8l78731742l2r2zys0jzw9ayipgas7-source.drv':
         specified: sha256-NwF9TOJ6SzJJBa7mrUOCLEhz2xf0it7rVuOzhqvDwt0=
            got:    sha256-9l59FrRUWM6L5dnZm5X/ir/X+ZgzQ2TT5TnNeX1OyIw=
error: 1 dependencies of derivation '/nix/store/54slqk4q963pak3iqyqbar1wra54fkq1-gebaar-libinput-6ce14eb64a9f4bb8201bae26052521ae5e64f553.drv' failed to build

gebaar-libinput's source hasn't changed, rev hasn't changed, hash hasn't changed.

Did GitHub change something on their runner, and maybe gebaar-libinput exposes some FS quirk? (I think that's happened before with certain archives and macos targets for example)

colemickens commented 1 year ago

Well... if I invalidate the (rev and update to redo the) hash, the hash does change:

   rev = "6ce14eb64a9f4bb8201bae26052521ae5e64f553";
-  sha256 = "sha256-NwF9TOJ6SzJJBa7mrUOCLEhz2xf0it7rVuOzhqvDwt0=";
+  sha256 = "sha256-9l59FrRUWM6L5dnZm5X/ir/X+ZgzQ2TT5TnNeX1OyIw=";
colemickens commented 1 year ago

Is this related to nixpkgs's derivation having "fetchSubmodules" for their src?

colemickens commented 1 year ago

yup, that's it, and that's why it doesn't build with the updated hash.

colemickens commented 1 year ago

fixed in #360