I’m trying to get a nix build of kenku-fm, but having some trouble. I don’t have much experience with NodeJS projects, and have reached a road block.
(I made an issue here for a package request in case someone feels like getting to it before I do Package request: kenku-fm · Issue #259472 · NixOS/nixpkgs · GitHub)
Here is the derivation that I have so far (partly generated by nix-init):
{ lib
, fetchFromGitHub
, mkYarnPackage
}:
mkYarnPackage rec {
pname = "kenku-fm";
version = "1.4.1";
src = fetchFromGitHub {
owner = "owlbear-rodeo";
repo = "kenku-fm";
rev = "v${version}";
hash = "sha256-4CXGEceHOkEPdS6/P5AXYTwNhkwttmvbQVWww4/v/v8=";
};
meta = with lib; {
description = "Online tabletop audio sharing for Discord";
homepage = "https://github.com/owlbear-rodeo/kenku-fm/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ];
mainProgram = "kenku-fm";
platforms = platforms.all;
};
}
However I got the following error (build using nixos unstable branch as of a few minutes ago):
❯ nix build
error: hash mismatch in fixed-output derivation '/nix/store/yrqslhxq7sadb6jd7zjwkbjvyq4hxspp-castlabs_electron_releases.drv':
specified: sha1-se7f3fl5bdSRwVT5hUqmssQhIUM=
got: sha1-BIBSMWF8VKPcQ7bB+mzbbzgeCW8=
error: 1 dependencies of derivation '/nix/store/373wd2cgvk9bf3pshfapiqz6xlj5ivpw-offline.drv' failed to build
error: 1 dependencies of derivation '/nix/store/lqicq5kjpbnkbci9rvwlpajv3p976lxz-kenku-fm-modules-1.4.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/p4g6f2fqbk7ajny9i4ia6xav7z32hb18-kenku-fm-1.4.1.drv' failed to build
It seems one of the modules has a hash mismatch - this electron-releases
. I cannot see where his sha comes from - it’s not in the repository as far as I can tell so maybe this is generated via mkYarnPackage? But if so, how come this sha is incorrect?
Any thoughts on getting this to work? Happy to do a PR with a working package if can get it working.
Thanks in advance