11{
22 lib ,
3- stdenv ,
43 rustPlatform ,
54 fetchFromGitHub ,
65 installShellFiles ,
6+ writableTmpDirAsHomeHook ,
77 versionCheckHook ,
88 nix-update-script ,
99} :
1010
11- rustPlatform . buildRustPackage rec {
11+ rustPlatform . buildRustPackage ( finalAttrs : {
1212 pname = "iamb" ;
13- version = "0.0.10 " ;
13+ version = "0.0.11 " ;
1414
1515 src = fetchFromGitHub {
1616 owner = "ulyssa" ;
1717 repo = "iamb" ;
18- tag = "v${ version } " ;
19- hash = "sha256-cjBSWUBgfwdLnpneJ5XW2TdOFkNc+Rc/wyUp9arZzwg =" ;
18+ tag = "v${ finalAttrs . version } " ;
19+ hash = "sha256-nvEOtV1Y5K9E1Lj+bPnQ6k1AneDM9OT3RbV3Urm/1Qs =" ;
2020 } ;
2121
22- cargoHash = "sha256-fAre0jrpJ63adcg4AKCYzdQtCsd0MMMcWA0RsoHo6ig =" ;
22+ cargoHash = "sha256-uWYNFNoCiqw6gYuHZWmZmZVs7lKNvhzjwEyxgcbvv+8 =" ;
2323
24- nativeBuildInputs = [ installShellFiles ] ;
25-
26- preBuild = ''
27- export HOME=$(mktemp -d)
28- '' ;
29-
30- checkFlags = lib . optionals stdenv . hostPlatform . isDarwin [
31- # Attempted to create a NULL object.
32- "--skip=base::tests::test_complete_cmdbar"
33- "--skip=base::tests::test_complete_msgbar"
34-
35- # Attempted to create a NULL object.
36- "--skip=windows::room::scrollback::tests::test_cursorpos"
37- "--skip=windows::room::scrollback::tests::test_dirscroll"
38- "--skip=windows::room::scrollback::tests::test_movement"
39- "--skip=windows::room::scrollback::tests::test_search_messages"
24+ nativeBuildInputs = [
25+ installShellFiles
4026 ] ;
4127
4228 postInstall = ''
@@ -57,8 +43,8 @@ rustPlatform.buildRustPackage rec {
5743 description = "Matrix client for Vim addicts" ;
5844 mainProgram = "iamb" ;
5945 homepage = "https://github.com/ulyssa/iamb" ;
60- changelog = "https://github.com/ulyssa/iamb/releases/tag/${ src . tag } " ;
46+ changelog = "https://github.com/ulyssa/iamb/releases/tag/${ finalAttrs . src . tag } " ;
6147 license = lib . licenses . asl20 ;
6248 maintainers = with lib . maintainers ; [ meain ] ;
6349 } ;
64- }
50+ } )
0 commit comments