nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 60 lines 1.2 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 fetchpatch, 6 alsa-lib, 7 libopus, 8 soxr, 9 cmake, 10 pkg-config, 11 versionCheckHook, 12 nix-update-script, 13}: 14rustPlatform.buildRustPackage (final: { 15 pname = "bark"; 16 version = "0.6.0"; 17 src = fetchFromGitHub { 18 owner = "haileys"; 19 repo = "bark"; 20 tag = "v${final.version}"; 21 hash = "sha256-JaUIWGCYhasM0DgqL+DiG2rE1OWVg/N66my/4RWDN1E="; 22 }; 23 24 cargoHash = "sha256-LcmX8LbK8UHDDeqwLTFEUuRBv9GgDiCpXP4bmIR3gME="; 25 26 # Broken rustdoc comment 27 patches = [ 28 (fetchpatch { 29 url = "https://patch-diff.githubusercontent.com/raw/haileys/bark/pull/13.patch"; 30 hash = "sha256-cA1bqc7XhJ2cxOYvjIJ9oopzBZ9I4rGERkiwDAUh3V4"; 31 }) 32 ]; 33 34 buildInputs = [ 35 alsa-lib 36 libopus 37 soxr 38 ]; 39 40 nativeBuildInputs = [ 41 cmake 42 pkg-config 43 ]; 44 45 nativeInstallCheckInputs = [ 46 versionCheckHook 47 ]; 48 doInstallCheck = true; 49 50 passthru.updateScript = nix-update-script { }; 51 52 meta = { 53 description = "Live sync audio streaming for local networks"; 54 homepage = "https://github.com/haileys/bark"; 55 license = lib.licenses.agpl3Only; 56 maintainers = with lib.maintainers; [ samw ]; 57 platforms = lib.platforms.linux; 58 mainProgram = "bark"; 59 }; 60})