Files
nixpkgs/pkgs/by-name/to/tone/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

57 lines
1.3 KiB
Nix

{
lib,
fetchFromGitHub,
buildDotnetModule,
ffmpeg-full,
dotnetCorePackages,
versionCheckHook,
nix-update-script,
}:
buildDotnetModule rec {
pname = "tone";
version = "0.2.5";
src = fetchFromGitHub {
owner = "sandreas";
repo = "tone";
tag = "v${version}";
hash = "sha256-yqcxqwlCfVDTv5jkcneimlS5EgnDlB7ZvxPt53t9jbQ=";
};
patchPhase = ''
substituteInPlace tone/Program.cs \
--replace-fail "@package_version@" ${version}
'';
projectFile = "tone/tone.csproj";
executables = [ "tone" ];
nugetDeps = ./deps.json;
dotnetInstallFlags = [
"-p:PublishSingleFile=false"
];
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.sdk_8_0;
runtimeDeps = [ ffmpeg-full ];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/sandreas/tone";
description = "Cross platform utility to dump and modify audio metadata for a wide variety of formats";
changelog = "https://github.com/sandreas/tone/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
jvanbruegge
jwillikers
];
platforms = with lib.platforms; linux ++ darwin ++ windows;
mainProgram = "tone";
};
}