mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-07-07 10:37:46 +02:00
chore: change name to ReSet to avoid conflicts
This commit is contained in:
parent
8ddaea9a7d
commit
b7151f1feb
6 changed files with 21 additions and 19 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,19 +5,19 @@ self: { config
|
|||
, ...
|
||||
}:
|
||||
let
|
||||
cfg = config.programs.reset;
|
||||
cfg = config.programs.ReSet;
|
||||
defaultPackage = self.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
in
|
||||
{
|
||||
meta.maintainers = with lib.maintainers; [ DashieTM ];
|
||||
options.programs.reset = with lib; {
|
||||
enable = mkEnableOption "reset";
|
||||
options.programs.ReSet = with lib; {
|
||||
enable = mkEnableOption "ReSet";
|
||||
|
||||
package = mkOption {
|
||||
type = with types; nullOr package;
|
||||
default = defaultPackage;
|
||||
defaultText = lib.literalExpression ''
|
||||
reset.packages.''${pkgs.stdenv.hostPlatform.system}.default
|
||||
ReSet.packages.''${pkgs.stdenv.hostPlatform.system}.default
|
||||
'';
|
||||
description = mdDoc ''
|
||||
Package to run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue