lencx / Noi

🚀 Power Your World with AI - Explore, Extend, Empower.
https://noi.nofwl.com
6.63k stars 484 forks source link

Feature Request: Create a Nix Package #215

Open DenisSud opened 3 months ago

DenisSud commented 3 months ago

Hello,

I would like to request the creation and publication of a Nix package for the Noi browser. Below is a summary of the process for creating and publishing a Nix package, based on the official Nix documentation.

Summary of the Process:

  1. Create the Nix Expression:

    • Develop a default.nix file to define the package. This includes specifying the package name, version, source URL, SHA256 hash, and installation steps.

    • Example template:

      { stdenv, fetchurl }:
      
      stdenv.mkDerivation rec {
      pname = "noi";
      version = "1.0.0";  # Replace with the actual version
      
      src = fetchurl {
       url = "http://path.to/noi-appimage";  # Replace with the URL of the Noi AppImage
       sha256 = "0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";  # Replace with the actual SHA256 hash
      };
      
      installPhase = ''
       mkdir -p $out/bin
       cp $src $out/bin/noi
       chmod +x $out/bin/noi
      '';
      
      meta = with stdenv.lib; {
       description = "Noi: An AI-enhanced, customizable browser";
       homepage = "http://homepage.of.noi";  # Replace with the actual homepage
       license = licenses.mit;  # Replace with the actual license
       maintainers = with maintainers; [ your-maintainer ];
      };
      }
    • Nixpkgs Documentation on Writing Packages

  2. Build the Package:

  3. Test the Package Locally:

  4. Publish to Nixpkgs:

Would it be possible for someone to contribute or provide guidance on creating and maintaining this Nix package for Noi? Any assistance or pointers would be greatly appreciated!

Thank you!

LinuxMason commented 3 months ago

I second this

lencx commented 3 months ago

I haven't used the Nix, and the core code of Noi is not open-source (other users can't build Noi). Is there anything I need to do to support this system?

LinuxMason commented 3 months ago

Nixpkgs is a repository for the NixOS Linux distribution. While I'm still getting familiar with the distro and might not have all the details, I can tell you that other non-free software is already included in the Nixpkgs repo, so adding Noi should be possible.

I recommend reaching out to experienced users in the NixOS forum for guidance on packaging it. You can find them at NixOS discourse. They'll be able to provide the information and support you need.