7 , gobject-introspection
18 src = fetchFromGitHub {
22 hash = "sha256-WbIeqOAhdqxU8EvHEsG7ASwy5xZG1domZKT5ccOggHg=";
25 vendorHash = "sha256-YT4JiieVI6/t4inezE3K2WQBI51W+/MoWr7R/uBzn+8=";
42 install -Dm644 ./resources/com.yktoo.ymuse.desktop -t $out/share/applications
43 install -Dm644 ./resources/metainfo/com.yktoo.ymuse.metainfo.xml -t $out/share/metainfo
44 cp -r ./resources/icons $out/share
47 find ./resources/i18n -type f -name '*.po' |
49 # Language is the filename without the extension
50 lang="$(basename "$file")"
53 # Create the target dir if needed
54 target_dir="$out/share/locale/$lang/LC_MESSAGES"
55 mkdir -p "$target_dir"
57 # Compile the .po into a .mo
58 echo "Compiling $file" into "$target_dir/$app_id.mo"
59 msgfmt "$file" -o "$target_dir/$app_id.mo"
63 # IDK how to deal with tests that open up display.
67 homepage = "https://yktoo.com/en/software/ymuse/";
68 description = "GTK client for Music Player Daemon (MPD)";
69 license = licenses.asl20;
70 maintainers = with maintainers; [ foo-dogsquared ];
71 mainProgram = "ymuse";
72 platforms = platforms.unix;