Files
nixpkgs/pkgs/by-name/cd/cddl/package.nix
Matthias Beyer ef7eb32648 treewide: Remove amesgen from maintainers, take over some
amesgen passed away in late 2025:

    https://www.tweag.io/blog/2025-12-16-in-memoriam-amesgen/

Condolences to their family and friends.

This patch removes them from the meta.maintainers of packages.
I take over some of the packages they maintained, where I feel
qualified.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2026-03-30 20:24:52 +02:00

46 lines
955 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 = {
description = "Parser, generator, and validator for CDDL";
homepage = "https://rubygems.org/gems/cddl";
license = with lib.licenses; mit;
maintainers = with lib.maintainers; [
fdns
nicknovitski
];
platforms = lib.platforms.unix;
};
}