diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2021-10-22 13:15:41 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 13:15:41 -0300 |
commit | 1cab3e231b41f38f2d2cbf5617eb7b88e433428a (patch) | |
tree | 4ac1762a7e713b8cb7736753c545d8eb9a727f95 /pkgs/applications/graphics | |
parent | a0ede55a287f1d320a657aa2123bc1fe4854df56 (diff) | |
parent | 33bbcacaf4e3d26d94cf2f306630c91aafca10b0 (diff) |
Merge pull request #141680 from AndersonTorres/new-ciano
ciano: init at 0.2.4
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r-- | pkgs/applications/graphics/ciano/default.nix | 76 |
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 0000000000000..dcaabed6b19c7 --- /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; + }; +} |