about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorFrederik Rietdijk <freddyrietdijk@fridh.nl>2018-10-14 08:58:16 +0200
committerGitHub <noreply@github.com>2018-10-14 08:58:16 +0200
commit49b9959be25b71868af6bedbbd06ca089904df63 (patch)
tree5c4f307a68ad73f15aec6d5d5410c074b573777b /pkgs/applications/audio
parent2e94003c9cdb294ab5f24b84139337efeb74a2e0 (diff)
parentf20899dd41f8fac6028a6a811da068e2b3a1460e (diff)
downloadnixlib-49b9959be25b71868af6bedbbd06ca089904df63.tar
nixlib-49b9959be25b71868af6bedbbd06ca089904df63.tar.gz
nixlib-49b9959be25b71868af6bedbbd06ca089904df63.tar.bz2
nixlib-49b9959be25b71868af6bedbbd06ca089904df63.tar.lz
nixlib-49b9959be25b71868af6bedbbd06ca089904df63.tar.xz
nixlib-49b9959be25b71868af6bedbbd06ca089904df63.tar.zst
nixlib-49b9959be25b71868af6bedbbd06ca089904df63.zip
Merge pull request #47631 from makefu/pkgs/cozy-audiobooks/init
cozy-audiobooks: init at 0.6.3
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/cozy-audiobooks/default.nix85
1 files changed, 85 insertions, 0 deletions
diff --git a/pkgs/applications/audio/cozy-audiobooks/default.nix b/pkgs/applications/audio/cozy-audiobooks/default.nix
new file mode 100644
index 000000000000..f0a7280b038d
--- /dev/null
+++ b/pkgs/applications/audio/cozy-audiobooks/default.nix
@@ -0,0 +1,85 @@
+{ stdenv, fetchFromGitHub
+, ninja
+, boost
+, meson
+, pkgconfig
+, wrapGAppsHook
+, appstream-glib
+, desktop-file-utils
+, gtk3
+, gst_all_1
+, gobjectIntrospection
+, python3Packages
+, file
+, cairo
+, sqlite
+, gettext
+, gnome3
+}:
+
+python3Packages.buildPythonApplication rec {
+
+  format = "other"; # no setup.py
+
+  name = "cozy-${version}";
+  version = "0.6.3";
+
+  src = fetchFromGitHub {
+    owner = "geigi";
+    repo = "cozy";
+    rev = version;
+    sha256 = "0xs6vzvmx0nvybpjqlrngggv2x8b2ky073slh760iirs1p0dclbc";
+  };
+
+  nativeBuildInputs = [
+    meson ninja pkgconfig
+    wrapGAppsHook
+    appstream-glib
+    desktop-file-utils
+    gobjectIntrospection
+  ];
+
+  buildInputs = [
+    gtk3
+    cairo
+    gettext
+    gnome3.defaultIconTheme
+  ] ++ (with gst_all_1; [
+    gstreamer
+    gst-plugins-good
+    gst-plugins-ugly
+    gst-plugins-base
+  ]);
+
+  propagatedBuildInputs = with python3Packages; [
+    gst-python
+    pygobject3
+    dbus-python
+    mutagen
+    peewee
+    magic
+  ];
+
+  postPatch = ''
+    chmod +x data/meson_post_install.py
+    patchShebangs data/meson_post_install.py
+    substituteInPlace cozy/magic/magic.py --replace "ctypes.util.find_library('magic')" "'${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'"
+  '';
+
+  checkPhase = ''
+    ninja test
+  '';
+
+  postInstall = ''
+    ln -s $out/bin/com.github.geigi.cozy $out/bin/cozy
+  '';
+
+  meta = with stdenv.lib; {
+    description = ''
+       A modern audio book player for Linux using GTK+ 3
+    '';
+    homepage = https://cozy.geigi.de/;
+    maintainers = [ maintainers.makefu ];
+    license = licenses.gpl3;
+  };
+}