Unverified Commit 6246844b authored by Ryan Hendrickson's avatar Ryan Hendrickson Committed by GitHub
Browse files

{hyprgui, hyprlauncher, hyprwall}: remove package (#368524)

parents 84847575 765b524b
Loading
Loading
Loading
Loading
+0 −59
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  rustPlatform,
  pkg-config,
  glib,
  pango,
  cairo,
  gtk4,
  wrapGAppsHook4,
}:

rustPlatform.buildRustPackage rec {
  pname = "hyprgui";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "hyprutils";
    repo = "hyprgui";
    rev = "refs/tags/v${version}";
    hash = "sha256-akV83bvPuSJUleP0mDcnAR1KFegOXyoKSD0CVyNDJmc=";
  };

  cargoHash = "sha256-SBI2Gk4FImGw8169xIV8L0fbfcKzn6PqvLg6XxbpurI=";

  strictDeps = true;

  nativeBuildInputs = [
    pkg-config
    wrapGAppsHook4
  ];

  buildInputs = [
    glib
    cairo
    pango
    gtk4
  ];

  prePatch = ''
    substituteInPlace hyprgui.desktop \
    --replace-fail "/usr/bin/" ""
  '';

  postInstall = ''
    install -Dm644 -t $out/usr/share/icons hyprgui.png
    install -Dm644 -t $out/usr/share/applications hyprgui.desktop
    install -Dm644 -t $out/usr/share/licenses/${pname} LICENSE
  '';

  meta = {
    description = "GUI for configuring Hyprland written in Rust";
    homepage = "https://github.com/hyprutils/hyprgui";
    license = lib.licenses.gpl2Only;
    maintainers = with lib.maintainers; [ fccapria ];
    badPlatforms = lib.platforms.darwin;
    mainProgram = "hyprgui";
  };
}
+0 −47
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  rustPlatform,
  pkg-config,
  glib,
  pango,
  gtk4,
  gtk4-layer-shell,
  wrapGAppsHook4,
}:

rustPlatform.buildRustPackage rec {
  pname = "hyprlauncher";
  version = "0.2.8";

  src = fetchFromGitHub {
    owner = "hyprutils";
    repo = "hyprlauncher";
    rev = "refs/tags/v${version}";
    hash = "sha256-+CFMGWK7W8BWIY2Xg4P7VLYQ7wQmmmjGSM5Rzq8yMSY=";
  };

  cargoHash = "sha256-epvUpsWkkJqWuUjsbHQaHMcBkDc06ke56I/5/QEag/g=";

  strictDeps = true;

  nativeBuildInputs = [
    pkg-config
    wrapGAppsHook4
  ];
  buildInputs = [
    glib
    pango
    gtk4
    gtk4-layer-shell
  ];

  meta = {
    description = "GUI for launching applications, written in Rust";
    homepage = "https://github.com/hyprutils/hyprlauncher";
    license = lib.licenses.gpl2Only;
    maintainers = with lib.maintainers; [ arminius-smh ];
    platforms = lib.platforms.linux;
    mainProgram = "hyprlauncher";
  };
}
+0 −54
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  rustPlatform,

  pkg-config,
  glib,
  pango,
  gtk3,
  wrapGAppsHook4,
}:

rustPlatform.buildRustPackage rec {
  pname = "hyprwall";
  version = "0.1.9";

  src = fetchFromGitHub {
    owner = "hyprutils";
    repo = "hyprwall";
    rev = "refs/tags/v${version}";
    hash = "sha256-A4lOEO7xKdKCUGv0scrGlwgkM8ekAWErzaN1DdgMMlA=";
  };

  cargoHash = "sha256-ZyVHkQGv+THb2cAHH3V8nb3x9ZmpoSdR8CV7AiWQ8as=";

  nativeBuildInputs = [
    pkg-config
    glib
    pango
    wrapGAppsHook4
  ];

  # Required in build process, prevents gdk-sys build error.
  buildInputs = [
    gtk3
  ];

  postInstall = ''
    install -Dm644 hyprwall.desktop -t $out/share/applications
    install -Dm644 hyprwall.png -t $out/share/pixmaps
    substituteInPlace "$out/share/applications/hyprwall.desktop" \
      --replace-fail 'Exec=/usr/bin/hyprwall' "Exec=hyprwall"
  '';

  meta = {
    description = "GUI for setting wallpapers with hyprpaper";
    homepage = "https://github.com/hyprutils/hyprwall";
    changelog = "https://github.com/hyprutils/hyprwall/releases/tag/v${version}";
    license = lib.licenses.gpl2Only;
    maintainers = with lib.maintainers; [ genga898 ];
    mainProgram = "hyprwall";
    platforms = lib.platforms.linux;
  };
}
+3 −0
Original line number Diff line number Diff line
@@ -552,6 +552,9 @@ mapAliases {
  ht-rust = throw "'ht-rust' has been renamed to/replaced by 'xh'"; # Converted to throw 2024-10-17
  hydra_unstable = hydra; # Added 2024-08-22
  hydron = throw "hydron has been removed as the project has been archived upstream since 2022 and is affected by a severe remote code execution vulnerability";
  hyprgui = throw "hyprgui has been removed as the repository is deleted"; # Added 2024-12-27
  hyprlauncher = throw "hyprlauncher has been removed as the repository is deleted"; # Added 2024-12-27
  hyprwall = throw "hyprwall has been removed as the repository is deleted"; # Added 2024-12-27


  ### I ###