mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
eid-viewer: associate with XML & plain text .eid files
The .eid files are in fact XML, but lack the <?xml...?> declaration that file(1) seems to expect. At least the viewer now appears as an option in most GUIs.
This commit is contained in:
parent
9438fa4d3f
commit
6565714873
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@ stdenv.mkDerivation rec {
|
|||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/eid-viewer --suffix LD_LIBRARY_PATH : ${pcsclite}/lib
|
||||
cat >> $out/share/applications/eid-viewer.desktop << EOF
|
||||
# eid-viewer creates XML without a header, making it "plain text":
|
||||
MimeType=application/xml;text/xml;text/plain
|
||||
EOF
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue