chore: change name to ReSet to avoid conflicts

This commit is contained in:
DashieTM 2024-06-07 00:28:40 +02:00
parent 8ddaea9a7d
commit b7151f1feb
6 changed files with 21 additions and 19 deletions

View file

@ -19,7 +19,7 @@ let
cargoToml = builtins.fromTOML (builtins.readFile ../Cargo.toml);
in
rustPlatform.buildRustPackage rec {
pname = cargoToml.package.name;
pname = "ReSet";
version = cargoToml.package.version;
src = ../.;
@ -50,8 +50,8 @@ rustPlatform.buildRustPackage rec {
copyLibs = true;
postInstall = ''
install -D --mode=444 $src/${pname}.desktop $out/share/applications/${pname}.desktop
install -D --mode=444 $src/src/resources/icons/ReSet.svg $out/share/pixmaps/ReSet.svg
install -D --mode=444 $src/reset.desktop $out/share/applications/reset.desktop
install -D --mode=444 $src/src/resources/icons/${pname}.svg $out/share/pixmaps/${pname}.svg
'';
# test is broken in nix for some reason
@ -64,6 +64,6 @@ rustPlatform.buildRustPackage rec {
changelog = "https://github.com/Xetibo/ReSet/releases/tag/${version}";
license = licenses.gpl3;
maintainers = with maintainers; [ DashieTM ];
mainProgram = "reset";
mainProgram = "ReSet";
};
}