File tree Expand file tree Collapse file tree 1 file changed +85
-0
lines changed
Expand file tree Collapse file tree 1 file changed +85
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchzip ,
5+ autoPatchelfHook ,
6+ cairo ,
7+ fontconfig ,
8+ gdk-pixbuf ,
9+ glib ,
10+ gtk3 ,
11+ libuuid ,
12+ pango ,
13+ zlib ,
14+ libsm ,
15+ libx11 ,
16+ libxxf86vm ,
17+ curl ,
18+ webkitgtk_4_1 ,
19+ libjpeg8 ,
20+ } :
21+
22+ stdenv . mkDerivation {
23+ pname = "fadein" ;
24+ version = "5.0.5" ;
25+
26+ src = fetchzip {
27+ url = "https://web.archive.org/web/20251115223750/https://www.fadeinpro.com/download/demo/fadein-linux-x64-demo.tar.gz" ;
28+ hash = "sha256-3UByoUbrH0Y/1+J9yovwI3FUI0n4HYbVAD/8wKNdCWE=" ;
29+ } ;
30+
31+ strictDeps = true ;
32+
33+ nativeBuildInputs = [ autoPatchelfHook ] ;
34+
35+ buildInputs = [
36+ cairo
37+ fontconfig
38+ gdk-pixbuf
39+ glib
40+ gtk3
41+ libuuid
42+ pango
43+ ( lib . getLib stdenv . cc . cc )
44+ libsm
45+ libx11
46+ libxxf86vm
47+ curl
48+ libjpeg8
49+ webkitgtk_4_1
50+ zlib
51+ ] ;
52+
53+ installPhase = ''
54+ runHook preInstall
55+ mkdir -p $out/share
56+ cp -r usr/share/* $out/share
57+
58+ # Fix icons
59+ for size in 16 24 32 48 64 96 128 256 512; do
60+ install -m 444 -D \
61+ "usr/share/fadein/icon_app/fadein_icon_'' ${size}x'' ${size}.png" \
62+ "$out/share/icons/hicolor/'' ${size}x'' ${size}/apps/fadein.png"
63+
64+ install -m 444 -D \
65+ "usr/share/fadein/icon_app/fadein_doc_'' ${size}x'' ${size}.png" \
66+ "$out/share/icons/hicolor/'' ${size}x'' ${size}/mimetypes/application-x-fadein-document.png"
67+ done
68+
69+ substituteInPlace $out/share/applications/fadein.desktop \
70+ --replace-fail 'Icon=/usr/share/fadein/icon_app/fadein_icon_256x256.png' 'Icon=fadein'
71+
72+ mkdir -p $out/bin
73+ ln -s "$out/share/fadein/fadein" "$out/bin/fadein"
74+ runHook postInstall
75+ '' ;
76+
77+ meta = {
78+ description = "Writing motion picture screenplays." ;
79+ homepage = "https://www.fadeinpro.com/" ;
80+ license = lib . licenses . unfree ;
81+ mainProgram = "fadein" ;
82+ maintainers = with lib . maintainers ; [ pancaek ] ;
83+ platforms = [ "x86_64-linux" ] ;
84+ } ;
85+ }
You can’t perform that action at this time.
0 commit comments