File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7070 iina
7171 m-cli
7272 mas
73+ mochi
7374 slack
7475 soundsource
7576 the-unarchiver
Original file line number Diff line number Diff line change 1616 "copilot-language-server"
1717 "cursor"
1818 "daisydisk"
19+ "mochi"
1920 "plexmediaserver"
2021 "roon-server"
2122 "slack"
Original file line number Diff line number Diff line change 3737 "craft" # auto_updates
3838 # "fastscripts" # TODO: Use pre-v3
3939 "legcord"
40- #"mochi"
4140 "qlcolorcode"
4241 "qlstephen"
4342 "quicklook-json"
Original file line number Diff line number Diff line change 11self : super : {
22 github-desktop = super . callPackage ./../packages/github-desktop/package.nix { } ;
3+ mochi = super . callPackage ./../packages/mochi/package.nix { } ;
34 transmissionic = super . callPackage ./../packages/transmissionic/package.nix { } ;
45 ungoogled-chromium = super . callPackage ./../packages/ungoogled-chromium/package.nix { } ;
56}
Original file line number Diff line number Diff line change 1+ # TODO: Upstream
2+ {
3+ lib ,
4+ stdenvNoCC ,
5+ fetchurl ,
6+ _7zz ,
7+ } :
8+ stdenvNoCC . mkDerivation ( finalAttrs : {
9+ pname = "mochi" ;
10+ version = "1.18.11" ;
11+
12+ src = fetchurl {
13+ url = "https://mochi.cards/releases/Mochi-${ finalAttrs . version } -arm64.dmg" ;
14+ hash = "sha256-IzJx8IMuX/zK3GRIkwnqW7OCcmPLUSld3pVD6sCLAxA=" ;
15+ } ;
16+
17+ # Use 7zz to work around APFS: https://discourse.nixos.org/t/help-with-error-only-hfs-file-systems-are-supported-on-ventura/25873/9
18+ nativeBuildInputs = [ _7zz ] ;
19+
20+ sourceRoot = "." ;
21+
22+ installPhase = ''
23+ runHook preInstall
24+
25+ mkdir -p "$out/Applications"
26+ cp -r *.app "$out/Applications"
27+
28+ runHook postInstall
29+ '' ;
30+
31+ meta = with lib ; {
32+ description = "Study notes and flashcards using spaced repetition" ;
33+ homepage = "https://mochi.cards/" ;
34+ license = lib . licenses . unfree ;
35+ platforms = platforms . darwin ;
36+ sourceProvenance = with sourceTypes ; [ binaryNativeCode ] ;
37+ } ;
38+ } )
You can’t perform that action at this time.
0 commit comments