diff options
Diffstat (limited to 'pkgs/by-name/ts/tsukimi/package.nix')
-rw-r--r-- | pkgs/by-name/ts/tsukimi/package.nix | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/pkgs/by-name/ts/tsukimi/package.nix b/pkgs/by-name/ts/tsukimi/package.nix index fc984dde21a0..a1cf6380d0c0 100644 --- a/pkgs/by-name/ts/tsukimi/package.nix +++ b/pkgs/by-name/ts/tsukimi/package.nix @@ -11,26 +11,26 @@ libepoxy, wrapGAppsHook4, makeDesktopItem, - copyDesktopItems, stdenv, + nix-update-script, }: rustPlatform.buildRustPackage rec { pname = "tsukimi"; - version = "0.12.2"; + version = "0.16.9"; src = fetchFromGitHub { owner = "tsukinaha"; repo = "tsukimi"; rev = "v${version}"; - hash = "sha256-pJ+SUNGQS/kqBdOg21GgDeZThcjnB0FhgG00qLfqxYA="; + hash = "sha256-SeABeXg2dpGYxGiDDwn811egRe8BYVdxK8hz7qfBagQ="; + fetchSubmodules = true; }; - cargoHash = "sha256-PCJiSyfEgK8inzoRmRvnAU50kLnyVhNrgLrwtBUFpIU="; + cargoHash = "sha256-o6FjBauHjdhxNXpqlJc/yNNTkRJyX3R4smAMrdFUjLA="; 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"; @@ -91,6 +83,6 @@ rustPlatform.buildRustPackage rec { platforms = lib.platforms.linux; # libmpv2 crate fail to compile # expected raw pointer `*const u8` found raw pointer `*const i8` - broken = stdenv.isAarch64; + broken = stdenv.hostPlatform.isAarch64; }; } |