nixpkgs/pkgs/by-name/ci/ciano/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.4 KiB
Nix
Raw Normal View History

{
lib,
desktop-file-utils,
fetchFromGitHub,
ffmpeg,
gtk3,
imagemagick,
meson,
ninja,
pantheon,
pkg-config,
python3,
stdenv,
vala,
wrapGAppsHook3,
2021-10-14 23:11:14 +00:00
}:
2024-09-25 01:12:34 +00:00
let
inherit (pantheon) granite;
in
stdenv.mkDerivation (finalAttrs: {
2021-10-14 23:11:14 +00:00
pname = "ciano";
version = "0.2.4";
src = fetchFromGitHub {
owner = "robertsanseries";
repo = "ciano";
rev = finalAttrs.version;
2021-10-14 23:11:14 +00:00
hash = "sha256-nubm6vBWwsHrrmvFAL/cIzYPxg9B1EhnpC79IJMNuFY=";
};
nativeBuildInputs = [
desktop-file-utils
meson
ninja
pkg-config
2024-09-25 01:12:34 +00:00
python3
2021-10-14 23:11:14 +00:00
vala
wrapGAppsHook3
2021-10-14 23:11:14 +00:00
];
buildInputs = [
ffmpeg
imagemagick
granite
2024-09-25 01:12:34 +00:00
gtk3
2021-10-14 23:11:14 +00:00
];
dontWrapGApps = true;
strictDeps = true;
2021-10-14 23:11:14 +00:00
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
postFixup =
let
binPath = lib.makeBinPath [
ffmpeg
imagemagick
];
in
2021-10-14 23:11:14 +00:00
''
wrapProgram $out/bin/com.github.robertsanseries.ciano \
--prefix PATH : ${binPath} "''${gappsWrapperArgs[@]}"
ln -s $out/bin/com.github.robertsanseries.ciano $out/bin/ciano
'';
meta = {
2021-10-14 23:11:14 +00:00
homepage = "https://github.com/robertsanseries/ciano";
description = "Multimedia file converter focused on simplicity";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.linux;
2021-10-14 23:11:14 +00:00
};
})