Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
967 B
Nix
47 lines
967 B
Nix
{
|
|
lib,
|
|
bundlerApp,
|
|
bundlerUpdateScript,
|
|
makeBinaryWrapper,
|
|
}:
|
|
|
|
bundlerApp {
|
|
pname = "cddl";
|
|
|
|
gemfile = ./Gemfile;
|
|
lockfile = ./Gemfile.lock;
|
|
|
|
gemset = lib.recursiveUpdate (import ./gemset.nix) {
|
|
"cddl" = {
|
|
dontBuild = false;
|
|
# setting env vars is not supported by patchShebangs
|
|
postPatch = ''
|
|
sed -i 's\#!/usr/bin/env RUBY_THREAD_VM_STACK_SIZE=5000000\#!/usr/bin/env\' bin/cddl
|
|
'';
|
|
};
|
|
};
|
|
|
|
exes = [ "cddl" ];
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/cddl \
|
|
--set RUBY_THREAD_VM_STACK_SIZE 5000000
|
|
'';
|
|
|
|
passthru.updateScript = bundlerUpdateScript "cddl";
|
|
|
|
meta = with lib; {
|
|
description = "Parser, generator, and validator for CDDL";
|
|
homepage = "https://rubygems.org/gems/cddl";
|
|
license = with licenses; mit;
|
|
maintainers = with maintainers; [
|
|
fdns
|
|
nicknovitski
|
|
amesgen
|
|
];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|