NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.58k stars 13.74k forks source link

Cerebro launcher #214977

Open Josemarialanda opened 1 year ago

Josemarialanda commented 1 year ago

Project description Cerebro is an open-source launcher to improve your productivity and efficiency

Metadata

Creator54 commented 1 year ago

Until packaged, you can checkout the appImage

cerebro.nix

let
  version = "0.11.0";
in { pkgs ? import <nixpkgs> {} }:
pkgs.appimageTools.wrapType2 {
  name = "Cerebro";
  src = pkgs.fetchurl {
    url = "https://github.com/cerebroapp/cerebro/releases/download/v${version}/Cerebro-${version}.AppImage";
    sha256 = "sha256-+rjAMoQI3KTmHGFnyFoe20qIrAEi0DL3ksInFy677P8=";
  };
}

nix-env -i -f cerebro.nix

heywoodlh commented 1 year ago

@Creator54 thank you for the snippet.

For those of us who are Nix-challenged (me), here's my module based on the above snippet that I import with configuration.nix:

{ config, pkgs, ... }:

let
  version = "0.11.0";
  cerebro = pkgs.appimageTools.wrapType2 {
    name = "Cerebro";
    src = pkgs.fetchurl {
      url = "https://github.com/cerebroapp/cerebro/releases/download/v${version}/Cerebro-${version}.AppImage";
      sha256 = "sha256-+rjAMoQI3KTmHGFnyFoe20qIrAEi0DL3ksInFy677P8=";
    };
  };
in {
  environment.systemPackages = [ cerebro ];
}
erkkimon commented 1 year ago

@heywoodlh Thanks! How do you open cerebro? I can't find any launcher and can't either figure it out how to launch it using commandline.

niscolas commented 4 months ago

@heywoodlh Thanks! How do you open cerebro? I can't find any launcher and can't either figure it out how to launch it using commandline.

It's an old comment already, but for anyone looking, just use Cerebro as the command, not cerebro