30 lines
854 B
Nix
30 lines
854 B
Nix
{ lib, rustPlatform, pkg-config, libopus }:
|
|
|
|
let manifest = (lib.importTOML ./Cargo.toml).package;
|
|
in rustPlatform.buildRustPackage {
|
|
pname = manifest.name;
|
|
version = manifest.version;
|
|
|
|
src = lib.cleanSource ./.;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ libopus ];
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"sunk-0.1.2" = "sha256-gxDinyzKHxph2D5OZ9TevVEWtsEnnFpu4BfkkBnRMx4=";
|
|
"serenity-0.11.5" = "sha256-10s0kflNYEMwUXAgrh6d1IUk3ZRSCkAilz9m1lVhXhA=";
|
|
"songbird-0.3.2" = "sha256-8wzCcV9W6K0MHqZ8yhTIMjh165NV8OQ9zlgrRrIhlOI=";
|
|
"poise-0.4.1" = "sha256-MPfg3miu9tesGKChaR8vz8RZA45I5uJs60MtgxDJryw=";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = manifest.description;
|
|
homepage = manifest.homepage;
|
|
license = licenses.agpl3Plus;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|