File tree Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ appimageTools ,
3+ fetchurl ,
4+ runCommand ,
5+ lib ,
6+ makeDesktopItem ,
7+ copyDesktopItems ,
8+ imagemagick ,
9+ } :
10+ let
11+ icon =
12+ runCommand "xnviewmp-icon.png"
13+ {
14+ nativeBuildInputs = [ imagemagick ] ;
15+ src = fetchurl {
16+ url = "https://www.xnview.com/img/app-xnsoft-360.webp" ;
17+ hash = "sha256-wIzF/WOsPcrYFYC/kGZi6FSJFuErci5EMONjrx1VCdQ=" ;
18+ } ;
19+ }
20+ ''
21+ convert $src $out
22+ '' ;
23+ in
24+ appimageTools . wrapType2 rec {
25+ pname = "xnviewmp" ;
26+ version = "1.8.8" ;
27+
28+ src = fetchurl {
29+ url = "https://download.xnview.com/old_versions/XnView_MP/XnView_MP-${ version } .glibc2.17-x86_64.AppImage" ;
30+ hash = "sha256-zPlb2r+oKNq1iv8dAWE/wbXtKAf3A+XOsSOkciHM6OA=" ;
31+ } ;
32+
33+ nativeBuildInputs = [
34+ copyDesktopItems
35+ ] ;
36+
37+ desktopItems = [
38+ ( makeDesktopItem {
39+ name = "xnviewmp" ;
40+ desktopName = "XnView MP" ;
41+ exec = "xnviewmp %F" ;
42+ icon = "xnviewmp" ;
43+ comment = "An efficient multimedia viewer, browser and converter" ;
44+ categories = [ "Graphics" ] ;
45+ } )
46+ ] ;
47+
48+ extraPkgs = pkgs : [
49+ pkgs . qt5 . qtbase
50+ ] ;
51+
52+ extraInstallCommands = ''
53+ install -m 444 -D ${ icon } $out/share/icons/hicolor/512x512/apps/xnviewmp.png
54+ '' ;
55+
56+ meta = {
57+ description = "Efficient multimedia viewer, browser and converter" ;
58+ changelog = "https://www.xnview.com/mantisbt/changelog_page.php" ;
59+ homepage = "https://www.xnview.com/en/xnviewmp/" ;
60+ downloadPage = "https://download.xnview.com/old_versions/XnView_MP/" ;
61+ sourceProvenance = [ lib . sourceTypes . binaryNativeCode ] ;
62+ license = lib . licenses . unfree ;
63+ mainProgram = "xnviewmp" ;
64+ maintainers = with lib . maintainers ; [ oddlama ] ;
65+ platforms = lib . platforms . linux ;
66+ } ;
67+ }
You can’t perform that action at this time.
0 commit comments