Compare commits
3 commits
f3d20ea3cb
...
1403595ae1
Author | SHA1 | Date | |
---|---|---|---|
1403595ae1 | |||
2141256716 | |||
f47876f467 |
3 changed files with 18 additions and 8 deletions
|
@ -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);
|
||||
|
|
|
@ -58,14 +58,22 @@
|
|||
"farsee" = "curl -F 'c=@-' 'https://fars.ee/'"; # pb
|
||||
};
|
||||
|
||||
programs.fish.functions = {
|
||||
"pb" = let
|
||||
jq = lib.getExe pkgs.jq;
|
||||
curl = lib.getExe pkgs.curl;
|
||||
in ''
|
||||
programs.fish.functions = let
|
||||
jq = lib.getExe pkgs.jq;
|
||||
nix = lib.getExe pkgs.nix;
|
||||
curl = lib.getExe pkgs.curl;
|
||||
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 }'
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue