10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 hash = "sha256-/hwx4fe1yjfsLYxsQkUMXrqWhAgp/VJ74N1eSiXuJ54=";
21 cargoHash = "sha256-Os7djeTDChNWXWbmDuJWJnf7E+U/V14Jg4cLOMAKhu4=";
23 nativeBuildInputs = [ pkg-config wrapGAppsHook4 ];
24 buildInputs = [ openssl dbus ];
27 "--skip=tests::netease_lyric::get_netease_lyric" # Requires network access
30 WAYLYRICS_THEME_PRESETS_DIR = "${placeholder "out"}/share/waylyrics/themes";
34 install -d $WAYLYRICS_THEME_PRESETS_DIR
35 cp -vr themes/* $WAYLYRICS_THEME_PRESETS_DIR
36 # Install desktop entry
37 install -Dm644 metainfo/io.github.waylyrics.Waylyrics.desktop -t $out/share/applications
39 install -Dm644 metainfo/io.github.waylyrics.Waylyrics.gschema.xml -t $out/share/gsettings-schemas/$name/glib-2.0/schemas
40 glib-compile-schemas $out/share/gsettings-schemas/$name/glib-2.0/schemas/
42 install -Dm644 metainfo/io.github.waylyrics.Waylyrics.metainfo.xml -t $out/share/metainfo
44 install -d $out/share/icons
45 cp -vr res/icons/hicolor $out/share/icons/hicolor
46 # Install translations
48 for po in $(find . -type f -name '*.po')
50 install -d $(dirname "$out/share/locale/$po")
51 msgfmt -o $out/share/locale/''${po%.po}.mo $po
57 description = "Desktop lyrics with QQ and NetEase Music source";
58 mainProgram = "waylyrics";
59 homepage = "https://github.com/waylyrics/waylyrics";
60 license = with licenses; [ mit cc-by-40 ];
61 maintainers = with maintainers; [ shadowrz aleksana ];
62 platforms = platforms.linux;