Files
nixpkgs/pkgs/by-name/t-/t-rec/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.3 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
makeWrapper,
imagemagick,
libiconv,
ffmpeg,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "t-rec";
version = "0.7.9";
src = fetchFromGitHub {
owner = "sassman";
repo = "t-rec-rs";
rev = "v${finalAttrs.version}";
sha256 = "sha256-aQX+JJ2MwzzxJkA1vsE8JqvYpWtqyycvycPc2pyFU7g=";
};
cargoHash = "sha256-AgSYM2a9XGH2X4dcp5CSMnt0Bq/5XT8C3g1R2UX4mLY=";
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
imagemagick
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
];
postInstall = ''
wrapProgram "$out/bin/t-rec" --prefix PATH : "${
lib.makeBinPath [
imagemagick
ffmpeg
]
}"
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Blazingly fast terminal recorder that generates animated gif images for the web written in rust";
homepage = "https://github.com/sassman/t-rec-rs";
changelog = "https://github.com/sassman/t-rec-rs/releases/tag/v${finalAttrs.version}";
license = with lib.licenses; [ gpl3Only ];
maintainers = with lib.maintainers; [
hoverbear
matthiasbeyer
];
mainProgram = "t-rec";
};
})