mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +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 = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/eid-viewer --suffix LD_LIBRARY_PATH : ${pcsclite}/lib
|
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; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user