mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 18:24:53 +00:00
fadein: init at 5.0.13 (#416572)
This commit is contained in:
93
pkgs/by-name/fa/fadein/package.nix
Normal file
93
pkgs/by-name/fa/fadein/package.nix
Normal file
@@ -0,0 +1,93 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchzip,
|
||||
autoPatchelfHook,
|
||||
cairo,
|
||||
fontconfig,
|
||||
gdk-pixbuf,
|
||||
glib,
|
||||
gtk3,
|
||||
libuuid,
|
||||
pango,
|
||||
zlib,
|
||||
libsm,
|
||||
libx11,
|
||||
libxxf86vm,
|
||||
wayland,
|
||||
curl,
|
||||
webkitgtk_4_1,
|
||||
libjpeg8,
|
||||
wrapGAppsHook3,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "fadein";
|
||||
version = "5.0.13";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://web.archive.org/web/20260819062342/https://www.fadeinpro.com/download/demo/fadein-linux-x64-demo.tar.gz";
|
||||
hash = "sha256-6rq4DyuE8W6BOeNSFvwm102nXqVSHeUEHXuZbh3fbdA=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
cairo
|
||||
fontconfig
|
||||
gdk-pixbuf
|
||||
glib
|
||||
gtk3
|
||||
libuuid
|
||||
pango
|
||||
(lib.getLib stdenv.cc.cc)
|
||||
libsm
|
||||
libx11
|
||||
libxxf86vm
|
||||
curl
|
||||
libjpeg8
|
||||
webkitgtk_4_1
|
||||
wayland
|
||||
zlib
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share
|
||||
cp -r usr/share/* $out/share
|
||||
|
||||
# Fix icons
|
||||
for size in 16 24 32 48 64 96 128 256 512; do
|
||||
install -Dm444 \
|
||||
"usr/share/fadein/icon_app/fadein_icon_''${size}x''${size}.png" \
|
||||
"$out/share/icons/hicolor/''${size}x''${size}/apps/fadein.png"
|
||||
|
||||
install -Dm444 \
|
||||
"usr/share/fadein/icon_app/fadein_doc_''${size}x''${size}.png" \
|
||||
"$out/share/icons/hicolor/''${size}x''${size}/mimetypes/application-x-fadein-document.png"
|
||||
done
|
||||
|
||||
substituteInPlace $out/share/applications/fadein.desktop \
|
||||
--replace-fail 'Icon=/usr/share/fadein/icon_app/fadein_icon_256x256.png' 'Icon=fadein'
|
||||
|
||||
mkdir -p $out/bin
|
||||
ln -s "$out/share/fadein/fadein" "$out/bin/fadein"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Writing motion picture screenplays";
|
||||
homepage = "https://www.fadeinpro.com/";
|
||||
changelog = "https://www.fadeinpro.com/page.pl?content=version_notes";
|
||||
license = lib.licenses.unfree;
|
||||
mainProgram = "fadein";
|
||||
maintainers = with lib.maintainers; [ pancaek ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user