Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noi: init at 0.4.0 #368250

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5073,6 +5073,12 @@
github = "Daru-san";
githubId = 135046711;
};
darwincereska = {
name = "Darwin Cereska";
email = "[email protected]";
github = "darwincereska";
githubId = 157426553;
};
das-g = {
email = "[email protected]";
github = "das-g";
Expand Down
42 changes: 42 additions & 0 deletions pkgs/by-name/no/noi/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
lib,
appimageTools,
fetchurl,
}:
let
pname = "noi";
version = "0.4.0";
src = fetchurl {
url = "https://github.com/lencx/Noi/releases/download/v${version}/Noi_linux_${version}.Appimage";
hash = "sha256-ZwI1MpEoQn48zaan/GB7St6b15jtPHjwoUfD6bPkA3A=";
};
appimageContents = appimageTools.extract {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
mkdir -p $out/share/applications
cat > $out/share/applications/noi.desktop <<EOL
[Desktop Entry]
Version=1.5
Type=Application
Name=Noi
Icon=noi
Exec=noi %U
X-AppImage-Name=noi
X-AppImage-Version=${version}
X-AppImage-Arch=x86_64
EOL
chmod +x $out/share/applications/noi.desktop
install -D ${appimageContents}/usr/lib/noi/resources/icons/icon.png $out/share/icons/hicolor/256x256/apps/noi.png
'';
meta = {
description = "Power Your World with AI - Explore, Extend, Empower.";
homepage = "https://noi.nofwl.com";
maintainers = with lib.maintainers; [ darwincereska ];
license = lib.licenses.unfree;
mainProgram = "noi";
};
}
Loading