12 rustPlatform.buildRustPackage rec {
16 src = fetchFromGitLab {
20 hash = "sha256-txPMOWwxgs9PH1Scnwr/X4cuMIUa+eoLW3K2aqmqRMQ=";
23 cargoHash = "sha256-OyyzzkoYBed2XFCesj3QBodT9e/BaapGl/z0f6+cDZA=";
37 substituteInPlace src/domain/time.rs --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
38 substituteInPlace build.rs --replace "// gra::build" "gra::build"
42 substituteInPlace target/gra-gen/data/codes.loers.Karlender.desktop \
43 --replace "Exec=codes.loers.Karlender" "Exec=karlender"
44 substituteInPlace target/gra-gen/data/codes.loers.Karlender.appdata.xml \
45 --replace "<binary>codes.loers.Karlender</binary>" "<binary>karlender</binary>"
46 install -Dm444 target/gra-gen/codes.loers.Karlender.gschema.xml -t $out/share/gsettings-schemas/$name/glib-2.0/schemas/
47 glib-compile-schemas $out/share/gsettings-schemas/$name/glib-2.0/schemas/
48 install -Dm444 target/gra-gen/data/codes.loers.Karlender.svg -t $out/share/icons/hicolor/scalable/apps/
49 install -Dm444 target/gra-gen/data/codes.loers.Karlender.64.png -T $out/share/icons/hicolor/64x64/apps/codes.loers.Karlender.png
50 install -Dm444 target/gra-gen/data/codes.loers.Karlender.128.png -T $out/share/icons/hicolor/128x128/apps/codes.loers.Karlender.png
51 install -Dm444 target/gra-gen/data/codes.loers.Karlender.desktop -t $out/share/applications/
52 install -Dm444 target/gra-gen/data/codes.loers.Karlender.appdata.xml -t $out/share/metainfo/
56 description = "Mobile-friendly GTK calendar application";
57 mainProgram = "karlender";
58 homepage = "https://gitlab.com/floers/karlender";
59 license = licenses.gpl3Plus;
60 maintainers = with maintainers; [ chuangzhu ];
61 platforms = platforms.linux;