2022-09-07 09:52:30 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
bundlerApp,
|
|
|
|
bundlerUpdateScript,
|
|
|
|
makeWrapper,
|
2022-09-07 10:09:06 +02:00
|
|
|
ruby_3_1
|
2022-09-07 09:52:30 +02:00
|
|
|
}:
|
|
|
|
|
2022-09-07 10:09:06 +02:00
|
|
|
# 1. cd into this folder
|
|
|
|
# 2. start nix shell: nix-shell -p ruby_3_1 -p bundix
|
|
|
|
# 3. clean tings up: rm Gemfile.lock gemset.nix
|
|
|
|
# 4. Generate files again: bundle lock; bundix -l
|
|
|
|
# 5. Manually keep old sha256 hash of nokogiri dependency
|
|
|
|
|
|
|
|
# Issue seems to be platform specific "nokogiri (1.13.8-x86_64-linux)" which is not yet supported by gemset, leading to different versions and hashes
|
|
|
|
|
2022-09-07 09:52:30 +02:00
|
|
|
bundlerApp rec {
|
|
|
|
pname = "sitediff";
|
|
|
|
exes = [ "sitediff" ];
|
|
|
|
|
2022-09-07 10:09:06 +02:00
|
|
|
ruby = ruby_3_1;
|
2022-09-07 09:52:30 +02:00
|
|
|
gemdir = ./.;
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
passthru.updateScript = bundlerUpdateScript "sitediff";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SiteDiff makes it easy to see differences between two versions of a website.";
|
|
|
|
homepage = "https://sitediff.io/";
|
|
|
|
changelog = "https://github.com/evolvingweb/sitediff/commits/master";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|