Files
disconic/default.nix
2023-06-11 00:40:00 -03:00

31 lines
809 B
Nix

{ lib, rustPlatform, pkg-config, autoconf, alsa-lib, automake, libopus, ffmpeg, makeWrapper }:
let manifest = (lib.importTOML ./Cargo.toml).package;
in rustPlatform.buildRustPackage {
pname = manifest.name;
version = manifest.version;
src = lib.cleanSource ./.;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ autoconf alsa-lib automake libopus makeWrapper ffmpeg ];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"sunk-0.1.2" = "sha256-edipTPS8d6D2Rf6WFwutycI93YjuWK/Z5GQR2HHIxAU=";
};
};
postFixup = ''
wrapProgram $out/bin/disconic --set PATH ${lib.makeBinPath [ ffmpeg ]}
'';
meta = with lib; {
description = manifest.description;
homepage = manifest.homepage;
license = licenses.agpl3Plus;
platforms = platforms.all;
};
}