mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
75 lines
1.3 KiB
Nix
75 lines
1.3 KiB
Nix
{ lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, wrapGAppsHook4
|
|
, appstream-glib
|
|
, desktop-file-utils
|
|
, gobject-introspection
|
|
, libadwaita
|
|
, gst_all_1
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "cozy";
|
|
version = "1.3.0";
|
|
pyproject = false; # built with meson
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "geigi";
|
|
repo = "cozy";
|
|
rev = version;
|
|
hash = "sha256-oMgdz2dny0u1XV13aHu5s8/pcAz8z/SAOf4hbCDsdjw";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
appstream-glib
|
|
desktop-file-utils
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
libadwaita
|
|
] ++ (with gst_all_1; [
|
|
gstreamer
|
|
gst-plugins-good
|
|
gst-plugins-ugly
|
|
gst-plugins-base
|
|
gst-plugins-bad
|
|
]);
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
distro
|
|
mutagen
|
|
peewee
|
|
pygobject3
|
|
pytz
|
|
requests
|
|
];
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
'';
|
|
|
|
postFixup = ''
|
|
ln -s $out/bin/com.github.geigi.cozy $out/bin/cozy
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Modern audio book player for Linux";
|
|
homepage = "https://cozy.geigi.de/";
|
|
maintainers = with maintainers; [ makefu aleksana ];
|
|
license = licenses.gpl3Plus;
|
|
mainProgram = "com.github.geigi.cozy";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|