Compare commits

..

No commits in common. "1403595ae16def3be8682db3275b395498310253" and "f3d20ea3cb3a7767c2ade6d842bb3287be59d94f" have entirely different histories.

3 changed files with 8 additions and 18 deletions

View file

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

View file

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

View file

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