Skip to content

Commit

Permalink
pkgs: add tsukimi
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfox committed Sep 4, 2024
1 parent e4ad7fc commit 2372b33
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions pkgs/tsukimi/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
wrapGAppsHook4,
mpv,
clapper,
cairo,
gdk-pixbuf,
glib,
gst_all_1,
gtk4,
libadwaita,
openssl,
pango,
xz,
stdenv,
darwin,
}:

rustPlatform.buildRustPackage rec {
pname = "tsukimi";
version = "0.8.2";

src = fetchFromGitHub {
owner = "tsukinaha";
repo = "tsukimi";
rev = "v${version}";
hash = "sha256-m6z1n0EQKlNe24l/3bUb+6iUoxnTVsJ6vqdUkyNEmmE=";
};

cargoHash = "sha256-fRWp1VM9qXDl0zCV7v3bP4NJBLURDYUIthPwED25PDY=";

nativeBuildInputs = [
pkg-config
wrapGAppsHook4
];

buildInputs =
[
cairo
clapper
clapper.buildInputs
gdk-pixbuf
glib
gst_all_1.gstreamer
gtk4
mpv
libadwaita
openssl
pango
xz
]
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];

doCheck = false;

postInstall = ''
# mkdir -p $out/share/glib-2.0/schemas
# install -Dm 644 moe.tsuna.tsukimi.gschema.xml -t $out/share/glib-2.0/schemas/
mkdir -p $out/share/glib-2.0/schemas
cp moe.tsuna.tsukimi.gschema.xml $out/share/glib-2.0/schemas/moe.tsuna.tsukimi.gschema.xml
glib-compile-schemas $out/share/glib-2.0/schemas/
'';

meta = {
description = "A simple third-party Emby client";
homepage = "https://github.com/tsukinaha/tsukimi";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ ];
mainProgram = "tsukimi";
};
}

0 comments on commit 2372b33

Please sign in to comment.