mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00: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
@ -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 New Issue
Block a user