mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
tsukimi: 0.12.2 -> 0.16.7, add nix-update-script (#352587)
This commit is contained in:
commit
b065c9497a
@ -11,26 +11,26 @@
|
||||
libepoxy,
|
||||
wrapGAppsHook4,
|
||||
makeDesktopItem,
|
||||
copyDesktopItems,
|
||||
stdenv,
|
||||
nix-update-script,
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "tsukimi";
|
||||
version = "0.12.2";
|
||||
version = "0.16.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tsukinaha";
|
||||
repo = "tsukimi";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-pJ+SUNGQS/kqBdOg21GgDeZThcjnB0FhgG00qLfqxYA=";
|
||||
hash = "sha256-OsdwjmvmVh8lVDy6KWlXe1+9e/EOzQ/auUwaoVHrksI=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
cargoHash = "sha256-PCJiSyfEgK8inzoRmRvnAU50kLnyVhNrgLrwtBUFpIU=";
|
||||
cargoHash = "sha256-Su7ACU+n90ZkhPUKod/zb2I6bKce/ST+u2Kz3Dg6ogo=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
wrapGAppsHook4
|
||||
copyDesktopItems
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
@ -52,18 +52,6 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
doCheck = false; # tests require networking
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "Tsukimi";
|
||||
exec = "tsukimi";
|
||||
type = "Application";
|
||||
icon = "tsukimi";
|
||||
categories = [ "AudioVideo" ];
|
||||
startupWMClass = "moe.tsuna.tsukimi";
|
||||
desktopName = "Tsukimi";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace build.rs \
|
||||
--replace-fail 'i18n/locale' "$out/share/locale"
|
||||
@ -73,12 +61,16 @@ rustPlatform.buildRustPackage rec {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 moe.tsuna.tsukimi.gschema.xml -t $out/share/glib-2.0/schemas
|
||||
install -Dm644 resources/moe.tsuna.tsukimi.gschema.xml -t $out/share/glib-2.0/schemas
|
||||
glib-compile-schemas $out/share/glib-2.0/schemas
|
||||
|
||||
install -Dm644 resources/ui/icons/tsukimi.png -t $out/share/pixmaps
|
||||
install -Dm644 resources/icons/tsukimi.png -t $out/share/pixmaps
|
||||
|
||||
install -Dm644 resources/moe.tsuna.tsukimi.desktop.in $out/share/applications/moe.tsuna.tsukimi.desktop
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Simple third-party Emby client, featured with GTK4-RS, MPV and GStreamer";
|
||||
homepage = "https://github.com/tsukinaha/tsukimi";
|
||||
|
Loading…
Reference in New Issue
Block a user