From 67dfd684ddab52aaccdd2f197a77f2212d985799 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 22 Apr 2023 17:13:45 +0800 Subject: [PATCH] pop-launcher: remove package --- pkgs/default.nix | 1 - pkgs/pop-launcher.nix | 59 ------------------------------------------- 2 files changed, 60 deletions(-) delete mode 100644 pkgs/pop-launcher.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 4018bb5f..2ba62c6a 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -58,7 +58,6 @@ let mopidy-internetarchive = callPackage ./mopidy-internetarchive.nix { }; nautilus-annotations = callPackage ./nautilus-annotations { }; neuwaita-icon-theme = callPackage ./neuwaita-icon-theme { }; - pop-launcher = callPackage ./pop-launcher.nix { }; pop-launcher-plugin-brightness = callPackage ./pop-launcher-plugin-brightness { }; pop-launcher-plugin-duckduckgo-bangs = callPackage ./pop-launcher-plugin-duckduckgo-bangs.nix { }; diff --git a/pkgs/pop-launcher.nix b/pkgs/pop-launcher.nix deleted file mode 100644 index 3861d5cc..00000000 --- a/pkgs/pop-launcher.nix +++ /dev/null @@ -1,59 +0,0 @@ -{ rustPlatform -, fetchFromGitHub -, lib -, fd -, libqalculate -}: - -rustPlatform.buildRustPackage rec { - pname = "pop-launcher"; - version = "1.2.1"; - - src = fetchFromGitHub { - owner = "pop-os"; - repo = "launcher"; - rev = "${version}"; - sha256 = "sha256-BQAO9IodZxGgV8iBmUaOF0yDbAMVDFslKCqlh3pBnb0="; - }; - - postPatch = '' - substituteInPlace src/lib.rs \ - --replace '/usr/lib/pop-launcher' "$out/share/pop-launcher" - substituteInPlace plugins/src/scripts/mod.rs \ - --replace '/usr/lib/pop-launcher' "$out/share/pop-launcher" - substituteInPlace plugins/src/calc/mod.rs \ - --replace 'Command::new("qalc")' 'Command::new("${libqalculate}/bin/qalc")' - substituteInPlace plugins/src/find/mod.rs \ - --replace 'spawn("fd")' 'spawn("${fd}/bin/fd")' - substituteInPlace plugins/src/terminal/mod.rs \ - --replace '/usr/bin/gnome-terminal' 'gnome-terminal' - ''; - - cargoSha256 = "sha256-cTvrq0fH057UIx/O9u8zHMsg+psMGg1q9klV5OMxtok="; - - cargoBuildFlags = [ "--package" "pop-launcher-bin" ]; - - postInstall = '' - mv $out/bin/pop-launcher{-bin,} - - plugins_dir=$out/share/pop-launcher/plugins - scripts_dir=$out/share/pop-launcher/scripts - mkdir -p $plugins_dir $scripts_dir - - for plugin in $(find plugins/src -mindepth 1 -maxdepth 1 -type d -printf '%f\n'); do - mkdir $plugins_dir/$plugin - cp plugins/src/$plugin/*.ron $plugins_dir/$plugin - ln -sf $out/bin/pop-launcher $plugins_dir/$plugin/$(echo $plugin | sed 's/_/-/') - done - - for script in scripts/*; do - cp -r $script $scripts_dir - done - ''; - - meta = with lib; { - description = "Modular IPC-based desktop launcher service"; - homepage = "https://github.com/pop-os/launcher"; - license = licenses.mpl20; - }; -}