Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 100 lines 3.3 kB view raw
1{ 2 makeDesktopItem, 3 pname, 4 suiteName, 5}: 6 7{ 8 planmaker = makeDesktopItem { 9 name = "${pname}-planmaker"; 10 desktopName = "${suiteName} PlanMaker"; 11 icon = "${pname}-pml"; 12 categories = [ "Office" ]; 13 exec = "${pname}-planmaker %F"; 14 tryExec = "${pname}-planmaker"; 15 mimeTypes = [ 16 "application/x-pmd" 17 "application/x-pmdx" 18 "application/x-pmv" 19 "application/excel" 20 "application/x-excel" 21 "application/x-ms-excel" 22 "application/x-msexcel" 23 "application/x-sylk" 24 "application/x-xls" 25 "application/xls" 26 "application/vnd.ms-excel" 27 "application/vnd.stardivision.calc" 28 "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" 29 "application/vnd.openxmlformats-officedocument.spreadsheetml.template" 30 "application/vnd.ms-excel.sheet.macroenabled.12" 31 "application/vnd.ms-excel.template.macroEnabled.12" 32 "application/x-dif" 33 "text/spreadsheet" 34 "text/csv" 35 "application/x-prn" 36 "application/vnd.ms-excel.sheet.binary.macroenabled.12" 37 ]; 38 startupWMClass = "pm"; 39 }; 40 41 presentations = makeDesktopItem { 42 name = "${pname}-presentations"; 43 desktopName = "${suiteName} Presentations"; 44 icon = "${pname}-prl"; 45 categories = [ "Office" ]; 46 exec = "${pname}-presentations %F"; 47 tryExec = "${pname}-presentations"; 48 mimeTypes = [ 49 "application/x-prdx" 50 "application/x-prvx" 51 "application/x-prsx" 52 "application/x-prd" 53 "application/x-prv" 54 "application/x-prs" 55 "application/ppt" 56 "application/mspowerpoint" 57 "application/vnd.ms-powerpoint" 58 "application/vnd.openxmlformats-officedocument.presentationml.presentation" 59 "application/vnd.ms-powerpoint.presentation.macroenabled.12" 60 "application/vnd.openxmlformats-officedocument.presentationml.template" 61 "application/vnd.ms-powerpoint.template.macroEnabled.12" 62 "application/vnd.ms-powerpoint.slideshow.macroenabled.12" 63 "application/vnd.openxmlformats-officedocument.presentationml.slideshow" 64 ]; 65 startupWMClass = "pr"; 66 }; 67 68 textmaker = makeDesktopItem { 69 name = "${pname}-textmaker"; 70 desktopName = "${suiteName} TextMaker"; 71 icon = "${pname}-tml"; 72 categories = [ "Office" ]; 73 exec = "${pname}-textmaker %F"; 74 tryExec = "${pname}-textmaker"; 75 mimeTypes = [ 76 "application/x-tmdx" 77 "application/x-tmvx" 78 "application/x-tmd" 79 "application/x-tmv" 80 "application/msword" 81 "application/vnd.ms-word" 82 "application/x-doc" 83 "text/rtf" 84 "application/rtf" 85 "application/vnd.oasis.opendocument.text" 86 "application/vnd.oasis.opendocument.text-template" 87 "application/vnd.stardivision.writer" 88 "application/vnd.sun.xml.writer" 89 "application/vnd.sun.xml.writer.template" 90 "application/vnd.openxmlformats-officedocument.wordprocessingml.document" 91 "application/vnd.ms-word.document.macroenabled.12" 92 "application/vnd.openxmlformats-officedocument.wordprocessingml.template" 93 "application/vnd.ms-word.template.macroenabled.12" 94 "application/x-pocket-word" 95 "application/x-dbf" 96 "application/msword-template" 97 ]; 98 startupWMClass = "tm"; 99 }; 100}