feat: custom package derivations — forgejo-mcp, plymouth-theme, try-cli, scripts

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-06-28 06:48:37 +02:00
commit c8c89a19cf
4 changed files with 957 additions and 0 deletions

42
packages/try-cli.nix Normal file
View file

@ -0,0 +1,42 @@
# packages/try-cli.nix
#
# tobi/try — fuzzy-search experiment directory manager.
# A single-file Ruby script installed via rubygems upstream;
# we fetch the source directly and wrap it with ruby on PATH.
{
lib,
stdenv,
fetchFromGitHub,
ruby,
makeWrapper,
}:
stdenv.mkDerivation rec {
pname = "try-cli";
version = "unstable-2026-04-15";
src = fetchFromGitHub {
owner = "tobi";
repo = "try";
rev = "08ca3e7abc5e0015c9af38d9a2ff65d4fc3c3950";
hash = "sha256-yDPQAI/3M1AFsNxBklM5lq8uQwHPr6ryZJBgC2aXGfQ=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ ruby ];
installPhase = ''
mkdir -p $out/bin
cp try.rb $out/bin/try
cp -r lib $out/bin/lib
chmod +x $out/bin/try
wrapProgram $out/bin/try --prefix PATH : ${ruby}/bin
'';
meta = with lib; {
description = "Fresh directories for every vibe fuzzy experiment manager";
homepage = "https://github.com/tobi/try";
license = licenses.mit;
mainProgram = "try";
};
}