initial commit
This commit is contained in:
26
default.nix
Normal file
26
default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user