Commit 1b547fb7 authored by Naoki OKAMURA's avatar Naoki OKAMURA

improved: update extended packages

parent 631f9618
self: super: let
require = path: args: super.callPackage (import path) args;
in {
elementary-tweaks = require ./pkgs/elementary-tweaks/default.nix { };
deezer = require ./pkgs/deezer/default.nix { };
deno-land = require ./pkgs/deno-land/default.nix { };
elementary-tweaks = require ./pkgs/elementary-tweaks/default.nix { };
fontmerger = require ./pkgs/font-merger/default.nix { };
genjyuu-gothic = require ./pkgs/genjyuu-gothic/default.nix { };
myrica-patched = require ./pkgs/myrica-patched/default.nix { };
......@@ -12,33 +14,4 @@ in {
switchboard-plug-locale = require ./pkgs/switchboard-plug-locale/default.nix { };
tmux-up = require ./pkgs/tmux-up/default.nix { };
wcwidth-cjk = require ./pkgs/wcwidth-cjk/default.nix { };
pantheon = super.pantheon.overrideScope' (extender: base: {
switchboard = base.switchboard.overrideAttrs (old: rec {
nativeBuildInputs = old.nativeBuildInputs ++ [
super.makeWrapper
];
buildInputs = old.buildInputs ++ [
super.gsettings-desktop-schemas
];
postFixup = ''
wrapProgram $out/bin/io.elementary.switchboard \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
--suffix XDG_DATA_DIRS : "$out/share:/run/current-system/sw/share:$GSETTINGS_SCHEMAS_PATH"
'';
});
switchboard-plug-keyboard = base.switchboard-plug-keyboard.overrideAttrs (old: rec {
postPatch = ''
cp ${super.fetchurl {
url = "https://raw.githubusercontent.com/geocool/switchboard-plug-keyboard/a5b1693ab74e4453da60e9446054aebd1cbc05e9/src/Shortcuts/Shortcut.vala";
sha256 = "0kki9lcz9rrn33369yxy54iwgn2ic42rxrrilisipj3hchwj7wga";
}} src/Shortcuts/Shortcut.vala
'';
});
switchboard-with-plugs = base.switchboard-with-plugs.override {
plugs = base.switchboardPlugs ++ [ self.elementary-tweaks ];
};
});
}
{ stdenv, fetchurl, electron_5, nodePackages, p7zip, makeDesktopItem }:
stdenv.mkDerivation rec {
name = "deezer";
version = "4.14.1";
src = fetchurl {
url = "https://www.deezer.com/desktop/download/artifact/win32/x86/${version}";
sha256 = "0z6z1qdqlxja4vx8248v67axncfc3rzqxx5m1w2xrcmg6rzpsyrc";
};
dontStrip = true;
desktopItem = makeDesktopItem {
name = "deezer";
desktopName = "Deezer HiFi Desktop";
comment = "Deezer HiFi Desktop Music Player";
genericName = "Music Player";
exec = "@out@/bin/deezer";
icon = "deezer";
startupNotify = "true";
categories = ";Audio;";
extraEntries = ''
StartupWMClass="deezer";
'';
};
nativeBuildInputs = [ nodePackages.asar p7zip ];
unpackPhase = ''
echo ${src}
7z x -so ${src} "\''$PLUGINSDIR/app-32.7z"> app-32.7z
7z x -y -bsp0 -bso0 app-32.7z
cd resources
asar extract app.asar app
'';
buildPhase = ''
sed -i "s|build/linux/systray.png|$out/share/deezer/systray.png|g" app/app/js/main/Utils/index.js
sed -i "s|process.resourcesPath,||g" app/app/js/main/Utils/index.js
rm -r app/node_modules/@nodert
sed -i 's|webPreferences:{dev|webPreferences:{nodeIntegration:true,dev|g' app/app/js/main/App/index.js
sed -i 's|nodeIntegration:!1|nodeIntegration:true|g' app/app/js/main/App/index.js
sed -i 's|urls:\[\"\*\.\"+r.tld\]|urls:\["\*://\*/\*\"\]|g' app/app/js/main/App/index.js
sed -i 's|urls:\[\"\*\.\*\"\]|urls:\["\*://\*/\*\"\]|g' app/app/js/main/App/index.js
asar pack app app.asar
'';
installPhase = ''
mkdir -p $out/bin
echo "#!${stdenv.shell}" >$out/bin/deezer
echo "exec ${electron_5}/bin/electron ''${out}/share/deezer/app.asar \"\''$@\"" >>$out/bin/deezer
chmod +x $out/bin/deezer
mkdir -p $out/share/deezer
cp app.asar $out/share/deezer/
mkdir -p $out/share/icons/hicolor/256x256/apps/
cp build/win/app.ico $out/share/icons/hicolor/256x256/apps/deezer.png
cp build/win/systray.png $out/share/deezer/systray.png
mkdir -p $out/share/applications/
substitute $desktopItem/share/applications/deezer.desktop \
$out/share/applications/deezer.desktop \
--subst-var out
'';
}
{ stdenv, fetchurl, patchelf, gzip }:
stdenv.mkDerivation rec {
name = "deno-${version}";
version = "v0.13.0";
src = fetchurl {
url = "https://github.com/denoland/deno/releases/download/${version}/deno_linux_x64.gz";
sha256 = "1pyh1ycvk6wj61ch06263sfa262lsg1n7fq5x0cfqag51rnfkcdl";
};
propargatedBuildInputs = [ patchelf gzip ];
unpackPhase = ''
cp ${src} deno.gz
gunzip deno.gz
chmod +w deno
'';
buildPhase = ''
patchelf \
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
deno
'';
installPhase = ''
mkdir -p $out/bin
cp deno $out/bin/deno
chmod 755 $out/bin/deno
'';
}
......@@ -5,8 +5,8 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "cbrnix";
repo = "Newaita";
rev = "493381f2adaef8f948e6b3dabd1357bcab57f30f";
sha256 = "02l726fhpwpawrfw22ghz8lwfynz6g2kvw4r3kb0r07f9gh84n80";
rev = "d73e6fd99a7c96817f09b821d251a37aa8ab90e0";
sha256 = "0rhxb7kvvv0qq91ikb2mrj23kfmkl3vknxsaqvbmn9qz7744qjjb";
};
installPhase = ''
......
......@@ -4,8 +4,8 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "fumiyas";
repo = "wcwidth-cjk";
rev = "be84f2153a08ae54f90b1dd221cc8ca5d9f2e3b7";
sha256 = "0k7n5a6dhm27bhycsif78xy76s82i3iw993mg48zcr18vc4mq57m";
rev = "b15d9d13e1a4c3e7a281cae53135315348eaf9e0";
sha256 = "1127cdwpl2shv1lsg7l1q0cyf9x6qyvl25c3m0gfpvha305i45bi";
};
meta = with stdenv.lib; {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment