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
49 lines
999 B
Nix
49 lines
999 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
cmake,
|
|
fontconfig,
|
|
obs-studio,
|
|
pkg-config,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "obs-livesplit-one";
|
|
version = "0.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LiveSplit";
|
|
repo = "obs-livesplit-one";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-4Ar4ChSl226BVFyAnqpWDLxsZF63bxl++sWD+6aENW8=";
|
|
};
|
|
|
|
cargoHash = "sha256-e0FDa72vzRb5AMVmtkvAkiQ5GUXsq0LekqF+wDYDsr8=";
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
fontconfig
|
|
obs-studio
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir $out/lib/obs-plugins/
|
|
mv $out/lib/libobs_livesplit_one.so $out/lib/obs-plugins/obs-livesplit-one.so
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "OBS Studio plugin for adding LiveSplit One as a source";
|
|
homepage = "https://github.com/LiveSplit/obs-livesplit-one";
|
|
license = with licenses; [
|
|
asl20
|
|
mit
|
|
];
|
|
maintainers = [ maintainers.Bauke ];
|
|
inherit (obs-studio.meta) platforms;
|
|
};
|
|
}
|