git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #141680 from AndersonTorres/new-ciano

ciano: init at 0.2.4

commit1cab3e231b41f38f2d2cbf5617eb7b88e433428a authorAnderson Torres <torres.anderson.85@protonmail.com> dateFri 22 Oct 2021, 13:15 (5 years ago) parenta0ede5533bbcac
2 files changed+82
pkgs/applications/graphics/ciano/default.nix+76 pkgs/top-level/all-packages.nix+6
pkgs/applications/graphics/ciano/default.nixnew file+76
@@ -0,0 +1,76 @@
1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, desktop-file-utils
5+, ffmpeg
6+, gobject-introspection
7+, granite
8+, gtk
9+, imagemagick
10+, libgee
11+, libhandy
12+, libsecret
13+, libsoup
14+, meson
15+, ninja
16+, pkg-config
17+, python
18+, vala
19+, wrapGAppsHook
20+}:
21+
22+stdenv.mkDerivation rec {
23+ pname = "ciano";
24+ version = "0.2.4";
25+
26+ src = fetchFromGitHub {
27+ owner = "robertsanseries";
28+ repo = pname;
29+ rev = version;
30+ hash = "sha256-nubm6vBWwsHrrmvFAL/cIzYPxg9B1EhnpC79IJMNuFY=";
31+ };
32+
33+ nativeBuildInputs = [
34+ desktop-file-utils
35+ meson
36+ ninja
37+ pkg-config
38+ python
39+ vala
40+ wrapGAppsHook
41+ ];
42+
43+ buildInputs = [
44+ ffmpeg
45+ imagemagick
46+ granite
47+ gtk
48+ ];
49+
50+ postPatch = ''
51+ chmod +x meson/post_install.py
52+ patchShebangs meson/post_install.py
53+ '';
54+
55+ dontWrapGApps = true;
56+
57+ postFixup = let
58+ binPath = lib.makeBinPath [
59+ ffmpeg
60+ imagemagick
61+ ];
62+ in
63+ ''
64+ wrapProgram $out/bin/com.github.robertsanseries.ciano \
65+ --prefix PATH : ${binPath} "''${gappsWrapperArgs[@]}"
66+ ln -s $out/bin/com.github.robertsanseries.ciano $out/bin/ciano
67+ '';
68+
69+ meta = with lib; {
70+ homepage = "https://github.com/robertsanseries/ciano";
71+ description = "A multimedia file converter focused on simplicity";
72+ license = licenses.gpl3Plus;
73+ maintainers = with maintainers; [ AndersonTorres ];
74+ platforms = platforms.linux;
75+ };
76+}
pkgs/top-level/all-packages.nix+6
@@ -2265,6 +2265,12 @@ with pkgs;
22652265
22662266 bs-platform = callPackage ../development/compilers/bs-platform {};
22672267
2268+ ciano = callPackage ../applications/graphics/ciano {
2269+ inherit (pantheon) granite;
2270+ python = python3;
2271+ gtk = gtk3;
2272+ };
2273+
22682274 c3d = callPackage ../applications/graphics/c3d {
22692275 inherit (darwin.apple_sdk.frameworks) Cocoa;
22702276 };