Files
nixpkgs/pkgs/by-name/tt/ttysvr/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

74 lines
1.4 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
versionCheckHook,
nix-update-script,
# Runtime deps:
alsa-lib,
udev,
libGL,
vulkan-headers,
vulkan-loader,
}:
rustPlatform.buildRustPackage rec {
pname = "ttysvr";
version = "0.3.4";
src = fetchFromGitHub {
owner = "cxreiff";
repo = "ttysvr";
tag = "v${version}";
hash = "sha256-W8IglZVvhFqn0TH1ZBGWERizCxCQ+C4SckYFLCzB3yc=";
};
cargoHash = "sha256-iMzHoB1nfRDDSpHBrwKzW64fw7aYqh7uB14idbHTKH0=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
alsa-lib
udev
libGL
vulkan-headers
vulkan-loader
];
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
patchelf $out/bin/ttysvr \
--add-rpath ${
lib.makeLibraryPath [
libGL
vulkan-loader
]
}
'';
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Screen saver for your terminal";
homepage = "https://github.com/cxreiff/ttysvr";
changelog = "https://github.com/cxreiff/ttysvr/releases/tag/v${version}";
license = with lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ griffi-gh ];
mainProgram = "ttysvr";
platforms = with lib.platforms; linux;
};
}