Replies: 1 comment
-
I've created a packaging request at here: NixOS/nixpkgs#229341
The Nix file I used with help of ChatGPT: { stdenv, lib, appimageTools, fetchFromGitHub, fetchurl, makeDesktopItem, nodejs, python2, p7zip }:
let
pname = "min";
version = "1.27.0";
src = fetchFromGitHub {
owner = "minbrowser";
repo = pname;
rev = "v${version}";
hash = "sha256-mxDU/yNJUVuNw/Ts1nUFYCM0cY2KNCmuPIAD16AmTbo=";
};
in
stdenv.mkDerivation {
name = "${pname}-${version}";
inherit src;
nativeBuildInputs = [ nodejs python2 ];
buildPhase = ''
runHook preBuild
npm i
npm run buildAppImage
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp -r out/app/Min-linux-x64 $out/bin
ln -s $out/bin/Min-linux-x64/Min $out/bin/min
runHook postInstall
'';
desktopItems = [ (makeDesktopItem {
name = pname;
exec = "min";
icon = "min";
desktopName = "Min";
genericName = "Min Browser";
# categories = "Network;WebBrowser;";
categories = [ "Network" "WebBrowser" ];
# mimeTypes = "x-scheme-handler/http;x-scheme-handler/https;text/html;text/xml;application/xhtml+xml;";
mimeTypes = [ "x-scheme-handler/http" "x-scheme-handler/https" "text/html" "text/xml" "application/xhtml+xml" ];
}) ];
meta = with lib; {
description = "A smarter browser with information from the web";
homepage = "https://minbrowser.github.io/min/";
license = licenses.asl20;
maintainers = [ ];
platforms = platforms.linux;
};
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How i can install min on nixos?
Beta Was this translation helpful? Give feedback.
All reactions