nixpkgs/pkgs/by-name/ci/ciano/package.nix
Anderson Torres 476c490fb2 ciano: refactor
- finalAttrs
- strictDeps
- no nested with
2024-10-13 10:38:31 -03:00

79 lines
1.4 KiB
Nix

{
lib,
desktop-file-utils,
fetchFromGitHub,
ffmpeg,
gtk3,
imagemagick,
meson,
ninja,
pantheon,
pkg-config,
python3,
stdenv,
vala,
wrapGAppsHook3,
}:
let
inherit (pantheon) granite;
in
stdenv.mkDerivation (finalAttrs: {
pname = "ciano";
version = "0.2.4";
src = fetchFromGitHub {
owner = "robertsanseries";
repo = "ciano";
rev = finalAttrs.version;
hash = "sha256-nubm6vBWwsHrrmvFAL/cIzYPxg9B1EhnpC79IJMNuFY=";
};
nativeBuildInputs = [
desktop-file-utils
meson
ninja
pkg-config
python3
vala
wrapGAppsHook3
];
buildInputs = [
ffmpeg
imagemagick
granite
gtk3
];
dontWrapGApps = true;
strictDeps = true;
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
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 = {
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;
};
})