about summary refs log tree commit diff
path: root/pkgs/applications/audio/cozy
diff options
context:
space:
mode:
authorPhilipp Bartsch <phil@grmr.de>2021-08-29 18:11:36 +0200
committerPhilipp Bartsch <phil@grmr.de>2021-08-29 18:15:10 +0200
commitc8624013d3cd14134349f43f3272d97c32092ee9 (patch)
tree4c84b858bee6dbc013957c1f5e706d11e320d292 /pkgs/applications/audio/cozy
parenta3c6a337686cea58eab5d52625b5935c917c809e (diff)
cozy: rename directory and drop unused argument
Suggestions by @mweinelt and @r-rmcgibbo.
Diffstat (limited to 'pkgs/applications/audio/cozy')
-rw-r--r--pkgs/applications/audio/cozy/default.nix92
1 files changed, 92 insertions, 0 deletions
diff --git a/pkgs/applications/audio/cozy/default.nix b/pkgs/applications/audio/cozy/default.nix
new file mode 100644
index 0000000000000..afceca2a54ba8
--- /dev/null
+++ b/pkgs/applications/audio/cozy/default.nix
@@ -0,0 +1,92 @@
+{ lib, fetchFromGitHub
+, ninja
+, meson
+, pkg-config
+, wrapGAppsHook
+, appstream-glib
+, desktop-file-utils
+, gtk3
+, gst_all_1
+, gobject-introspection
+, libhandy
+, libdazzle
+, python3Packages
+, cairo
+, gettext
+, gnome
+, pantheon
+}:
+
+python3Packages.buildPythonApplication rec {
+
+  format = "other"; # no setup.py
+
+  pname = "cozy";
+  version = "1.1.2";
+
+  # Temporary fix
+  # See https://github.com/NixOS/nixpkgs/issues/57029
+  # and https://github.com/NixOS/nixpkgs/issues/56943
+  strictDeps = false;
+
+  src = fetchFromGitHub {
+    owner = "geigi";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-QENn8mFMk06/Uj8QJo0mJQ7frJNcv5RVNJwDB+H/LkI=";
+  };
+
+  nativeBuildInputs = [
+    meson ninja pkg-config
+    wrapGAppsHook
+    appstream-glib
+    desktop-file-utils
+    gobject-introspection
+  ];
+
+  buildInputs = [
+    gtk3
+    cairo
+    gettext
+    gnome.adwaita-icon-theme
+    libdazzle
+    libhandy
+    pantheon.granite
+  ] ++ (with gst_all_1; [
+    gstreamer
+    gst-plugins-good
+    gst-plugins-ugly
+    gst-plugins-base
+    gst-plugins-bad
+  ]);
+
+  propagatedBuildInputs = with python3Packages; [
+    apsw
+    cairo
+    dbus-python
+    distro
+    gst-python
+    magic
+    mutagen
+    packaging
+    peewee
+    pygobject3
+    pytz
+    requests
+  ];
+
+  postPatch = ''
+    patchShebangs meson/*.py
+  '';
+
+  postInstall = ''
+    ln -s $out/bin/com.github.geigi.cozy $out/bin/cozy
+  '';
+
+  meta = with lib; {
+    description = "A modern audio book player for Linux using GTK 3";
+    homepage = "https://cozy.geigi.de/";
+    maintainers = [ maintainers.makefu ];
+    license = licenses.gpl3;
+  };
+}