initial commit

This commit is contained in:
Gabriel Fontes
2022-01-27 22:57:11 -03:00
commit c8c2b86ea6
16 changed files with 3720 additions and 0 deletions

26
default.nix Normal file
View File

@@ -0,0 +1,26 @@
{ lib, rustPlatform, pkg-config, autoconf, alsa-lib, automake, libopus, ffmpeg }:
let manifest = (lib.importTOML ./Cargo.toml).package;
in rustPlatform.buildRustPackage rec {
pname = manifest.name;
version = manifest.version;
src = lib.cleanSource ./.;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ autoconf alsa-lib automake libopus ffmpeg ];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"sunk-0.1.2" = "sha256-VruqNDbWbjdarXiyR1OHcXsR1MvTmCM5j+v2ZpcG5IA=";
};
};
meta = with lib; {
description = manifest.desciption;
homepage = manifest.homepage;
license = licenses.agpl3Plus;
platforms = platforms.all;
};
}