summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2021-10-22 09:33:07 -0700
committerJonathan Ringer <jonringer117@gmail.com>2021-10-22 09:33:07 -0700
commitfc25d940101161034ac357c48a5912b413fa75cc (patch)
tree8d704fee8fa5137952e12e19d74e683ce1fea729 /pkgs/applications/graphics
parent54a42ab84624e64ad5a1f34daa9559d148970f95 (diff)
parent1cab3e231b41f38f2d2cbf5617eb7b88e433428a (diff)
downloadnixpkgs-fc25d940101161034ac357c48a5912b413fa75cc.tar
nixpkgs-fc25d940101161034ac357c48a5912b413fa75cc.tar.gz
nixpkgs-fc25d940101161034ac357c48a5912b413fa75cc.tar.bz2
nixpkgs-fc25d940101161034ac357c48a5912b413fa75cc.tar.lz
nixpkgs-fc25d940101161034ac357c48a5912b413fa75cc.tar.xz
nixpkgs-fc25d940101161034ac357c48a5912b413fa75cc.tar.zst
nixpkgs-fc25d940101161034ac357c48a5912b413fa75cc.zip
Merge remote-tracking branch 'origin/master' into staging-next
 Conflicts:
	pkgs/development/python-modules/jupyter-client/default.nix
	pkgs/development/python-modules/jupyterlab-git/default.nix
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/ciano/default.nix76
1 files changed, 76 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/ciano/default.nix b/pkgs/applications/graphics/ciano/default.nix
new file mode 100644
index 00000000000..dcaabed6b19
--- /dev/null
+++ b/pkgs/applications/graphics/ciano/default.nix
@@ -0,0 +1,76 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, desktop-file-utils
+, ffmpeg
+, gobject-introspection
+, granite
+, gtk
+, imagemagick
+, libgee
+, libhandy
+, libsecret
+, libsoup
+, meson
+, ninja
+, pkg-config
+, python
+, vala
+, wrapGAppsHook
+}:
+
+stdenv.mkDerivation rec {
+  pname = "ciano";
+  version = "0.2.4";
+
+  src = fetchFromGitHub {
+    owner = "robertsanseries";
+    repo = pname;
+    rev = version;
+    hash = "sha256-nubm6vBWwsHrrmvFAL/cIzYPxg9B1EhnpC79IJMNuFY=";
+  };
+
+  nativeBuildInputs = [
+    desktop-file-utils
+    meson
+    ninja
+    pkg-config
+    python
+    vala
+    wrapGAppsHook
+  ];
+
+  buildInputs = [
+    ffmpeg
+    imagemagick
+    granite
+    gtk
+  ];
+
+  postPatch = ''
+    chmod +x meson/post_install.py
+    patchShebangs meson/post_install.py
+  '';
+
+  dontWrapGApps = true;
+
+  postFixup = let
+    binPath = lib.makeBinPath [
+      ffmpeg
+      imagemagick
+    ];
+  in
+    ''
+      wrapProgram $out/bin/com.github.robertsanseries.ciano \
+         --prefix PATH : ${binPath} "''${gappsWrapperArgs[@]}"
+      ln -s $out/bin/com.github.robertsanseries.ciano $out/bin/ciano
+    '';
+
+  meta = with lib; {
+    homepage = "https://github.com/robertsanseries/ciano";
+    description = "A multimedia file converter focused on simplicity";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ AndersonTorres ];
+    platforms = platforms.linux;
+  };
+}