3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #106821 from gebner/vieb310

vieb: init at 3.1.0
This commit is contained in:
Gabriel Ebner 2020-12-14 18:23:14 +01:00 committed by GitHub
commit 373ddfaf8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10997 additions and 1 deletions

View file

@ -0,0 +1,58 @@
{ mkYarnPackage, fetchFromGitHub, electron, makeWrapper, makeDesktopItem, lib }:
mkYarnPackage rec {
pname = "vieb";
version = "3.1.0";
src = fetchFromGitHub {
owner = "jelmerro";
repo = pname;
rev = version;
sha256 = "10l36q75nmqv0azxhmwms6hjicbgyvpk8k6ljrh9d7zxryd3xwz0";
};
packageJSON = ./package.json;
yarnLock = ./yarn.lock;
yarnNix = ./yarn.nix;
yarnFlags = [ "--production" "--offline" ];
nativeBuildInputs = [ makeWrapper ];
desktopItem = makeDesktopItem {
name = "vieb";
exec = "vieb %U";
icon = "vieb";
desktopName = "Web Browser";
genericName = "Web Browser";
categories = "Network;WebBrowser;";
mimeType = lib.concatStringsSep ";" [
"text/html"
"application/xhtml+xml"
"x-scheme-handler/http"
"x-scheme-handler/https"
];
};
postInstall = ''
install -Dm0644 {${desktopItem},$out}/share/applications/vieb.desktop
pushd $out/libexec/vieb/node_modules/vieb/app/img/icons
for file in *.png; do
install -Dm0644 $file $out/share/icons/hicolor/''${file//.png}/apps/vieb.png
done
popd
makeWrapper ${electron}/bin/electron $out/bin/vieb \
--add-flags $out/libexec/vieb/node_modules/vieb/app
'';
distPhase = ":"; # disable useless $out/tarballs directory
meta = with lib; {
homepage = "https://vieb.dev/";
description = "Vim Inspired Electron Browser";
maintainers = with maintainers; [ gebner ];
platforms = platforms.unix;
license = licenses.gpl3;
};
}

View file

@ -0,0 +1,45 @@
{
"name": "vieb",
"productName": "Vieb",
"version": "3.1.0",
"description": "Vim Inspired Electron Browser",
"main": "app/index.js",
"babel": {
"plugins": [
"@babel/plugin-proposal-optional-chaining"
]
},
"scripts": {
"test": "jest -u && eslint .",
"start": "electron app",
"build": "node build.js",
"buildall": "node build.js --linux --win --mac",
"buildlinux": "node build.js --linux",
"buildwin": "node build.js --win",
"buildmac": "node build.js --mac"
},
"repository": "https://github.com/Jelmerro/Vieb",
"homepage": "https://vieb.dev",
"keywords": [
"Electron",
"Browser",
"Internet"
],
"author": "Jelmer van Arnhem",
"email": "Jelmerro@users.noreply.github.com",
"license": "GPL-3.0+",
"devDependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
"archiver": "^5.0.2",
"electron": "^11.0.3",
"electron-builder": "^22.9.1",
"eslint": "^7.15.0",
"jest": "^26.6.3"
},
"dependencies": {
"@cliqz/adblocker-electron": "^1.18.8",
"darkreader": "^4.9.26",
"is-svg": "^4.2.1",
"rimraf": "^3.0.2"
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -238,7 +238,7 @@ in rec {
package = lib.importJSON packageJSON;
pname = package.name;
safeName = reformatPackageName pname;
version = package.version or attrs.version;
version = attrs.version or package.version;
baseName = unlessNull name "${safeName}-${version}";
workspaceDependenciesTransitive = lib.unique (

View file

@ -23273,6 +23273,10 @@ in
owamp = callPackage ../applications/networking/owamp { };
vieb = callPackage ../applications/networking/browsers/vieb {
electron = electron_11;
};
vivaldi = callPackage ../applications/networking/browsers/vivaldi {};
vivaldi-ffmpeg-codecs = callPackage ../applications/networking/browsers/vivaldi/ffmpeg-codecs.nix {};