mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
476c490fb2
- finalAttrs - strictDeps - no nested with
79 lines
1.4 KiB
Nix
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;
|
|
};
|
|
})
|