Compare commits

...

3 commits

3 changed files with 18 additions and 8 deletions

View file

@ -1,6 +1,6 @@
// Restore disabled functions
user_pref("browser.cache.disk.enable", true);
user_pref("browser.download.always_ask_before_handling_new_types", true);
user_pref("browser.download.always_ask_before_handling_new_types", false);
user_pref("browser.download.useDownloadDir", true);
user_pref("browser.newtabpage.enabled", true);
user_pref("browser.shell.shortcutFavicons", true);

View file

@ -58,14 +58,22 @@
"farsee" = "curl -F 'c=@-' 'https://fars.ee/'"; # pb
};
programs.fish.functions = {
"pb" = let
programs.fish.functions = let
jq = lib.getExe pkgs.jq;
nix = lib.getExe pkgs.nix;
curl = lib.getExe pkgs.curl;
in ''
awk = lib.getExe pkgs.gawk;
in {
"pb" = ''
${jq} -Rns '{text: inputs}' | \
${curl} -s -H 'Content-Type: application/json' --data-binary @- https://pb.ny4.dev | \
${jq} -r '. | "https://pb.ny4.dev\(.path)"'
'';
"getmnter" = ''
${nix} eval nixpkgs#{$argv}.meta.maintainers --json | \
${jq} '.[].github' -r | \
${awk} '{ print "@" $1 }'
'';
};
}

View file

@ -6,18 +6,20 @@
}:
buildGoModule rec {
pname = "pixivfe";
version = "2.5.1";
version = "2.6";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "VnPower";
repo = "PixivFE";
rev = "v${version}";
hash = "sha256-G2pSPpemMFAbQ9QkI4XAHobv+Em9ZoDUJiO/cwEy4Tc=";
hash = "sha256-pusyCXy2tsdvOSUR6LfSYHv8YT1tiCErqUEkUgKYbZ4=";
};
vendorHash = "sha256-QapDR964Tn+RxXdkGqCQXacdmlSapF841Y84n4d/6VI=";
ldflags = ["-s" "-w"];
nativeBuildInputs = [makeBinaryWrapper];
# PixivFE require files from source code