Add desktop file and icon
This commit is contained in:
parent
e201539219
commit
9a212a85ea
17
flake.nix
17
flake.nix
@ -86,11 +86,26 @@
|
||||
|
||||
# Build the actual crate itself, reusing the dependency
|
||||
# artifacts from above.
|
||||
myCrate = craneLib.buildPackage (commonArgs // { inherit cargoArtifacts; });
|
||||
myCrate = craneLib.buildPackage (
|
||||
commonArgs
|
||||
// {
|
||||
inherit cargoArtifacts;
|
||||
}
|
||||
// {
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/applications
|
||||
cp ${./sheet-organizer.desktop} $out/share/applications/sheet-organizer.desktop
|
||||
|
||||
mkdir -p $out/share/icons
|
||||
cp ${./sheet-organizer.png} $out/share/icons/sheet-organizer.png
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
||||
# Also run the crate tests under cargo-tarpaulin so that we can keep
|
||||
# track of code coverage
|
||||
myCrateCoverage = craneLib.cargoTarpaulin (commonArgs // { inherit cargoArtifacts; });
|
||||
|
||||
in
|
||||
{
|
||||
packages.default = myCrate;
|
||||
|
6
sheet-organizer.desktop
Normal file
6
sheet-organizer.desktop
Normal file
@ -0,0 +1,6 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Name=Sheet Organizer
|
||||
Icon=sheet-organizer
|
||||
Exec=sheet-organizer
|
BIN
sheet-organizer.png
Normal file
BIN
sheet-organizer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 293 KiB |
Loading…
x
Reference in New Issue
Block a user