File tree Expand file tree Collapse file tree 1 file changed +46
-15
lines changed Expand file tree Collapse file tree 1 file changed +46
-15
lines changed Original file line number Diff line number Diff line change 1- { lib
2- , rustPlatform
3- , fetchFromGitHub
4- , pkg-config
5- , alsa-lib
6- , speexdsp
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 ,
713} :
8- rustPlatform . buildRustPackage {
14+ rustPlatform . buildRustPackage ( final : {
915 pname = "bark" ;
10- version = "unstable-2023-08-22 " ;
16+ version = "0.6.0 " ;
1117 src = fetchFromGitHub {
1218 owner = "haileys" ;
1319 repo = "bark" ;
14- rev = "2586b9fb58b496f8ef06f516c9cd3aace77521f7 " ;
15- hash = "sha256-sGroae6uJhB9UIpFmvt520Zs9k0ir7H8pGkhKJmVWek =" ;
20+ tag = "v ${ final . version } " ;
21+ hash = "sha256-JaUIWGCYhasM0DgqL+DiG2rE1OWVg/N66my/4RWDN1E =" ;
1622 } ;
23+
1724 useFetchCargoVendor = true ;
18- cargoHash = "sha256-WqJZoYpOQQGJGvND2R1o2nvK5P24z7YeJ9i26mai45M=" ;
19- buildInputs = [ alsa-lib speexdsp ] ;
20- nativeBuildInputs = [ pkg-config ] ;
25+ cargoHash = "sha256-LcmX8LbK8UHDDeqwLTFEUuRBv9GgDiCpXP4bmIR3gME=" ;
26+
27+ # Broken rustdoc comment
28+ patches = [
29+ ( fetchpatch {
30+ url = "https://patch-diff.githubusercontent.com/raw/haileys/bark/pull/13.patch" ;
31+ hash = "sha256-cA1bqc7XhJ2cxOYvjIJ9oopzBZ9I4rGERkiwDAUh3V4" ;
32+ } )
33+ ] ;
34+
35+ buildInputs = [
36+ alsa-lib
37+ libopus
38+ soxr
39+ ] ;
40+
41+ nativeBuildInputs = [
42+ cmake
43+ pkg-config
44+ ] ;
45+
46+ nativeInstallCheckInputs = [
47+ versionCheckHook
48+ ] ;
49+ versionCheckProgramArg = "--version" ;
50+ doInstallCheck = true ;
51+
52+ passthru . updateScript = nix-update-script { } ;
2153
2254 meta = {
2355 description = "Live sync audio streaming for local networks" ;
@@ -27,5 +59,4 @@ rustPlatform.buildRustPackage {
2759 platforms = lib . platforms . linux ;
2860 mainProgram = "bark" ;
2961 } ;
30- }
31-
62+ } )
You can’t perform that action at this time.
0 commit comments