Skip to content

Instantly share code, notes, and snippets.

View PerchunPak's full-sized avatar

Perchun Pak PerchunPak

View GitHub Profile
@PerchunPak
PerchunPak / pr.patch
Created October 10, 2024 18:48
WIP automatic nvimRequireCheck for vim plugins (nixpkgs)
diff --git a/maintainers/scripts/pluginupdate-py/pluginupdate.py b/maintainers/scripts/pluginupdate-py/pluginupdate.py
index afe60069dd29..3774bee702cf 100644
--- a/maintainers/scripts/pluginupdate-py/pluginupdate.py
+++ b/maintainers/scripts/pluginupdate-py/pluginupdate.py
@@ -132,6 +132,13 @@ class Repo:
return loaded["rev"], updated
+ @retry(urllib.error.URLError, tries=4, delay=3, backoff=2)
+ def get_path(self) -> Path:
@PerchunPak
PerchunPak / flake.nix
Created November 16, 2024 21:57
Minimal flake.nix
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs =
{ nixpkgs, ... }:
let
lib = nixpkgs.lib;
forAllSystems = with lib; mergeAttrsList (forEach lib.platforms.all);

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review


x86_64-darwin

@PerchunPak
PerchunPak / catppuccin-vscode-mocha.json
Created November 17, 2024 19:55
catppuccin-vscode-mocha.json
{
"name": "Catppuccin Mocha",
"type": "dark",
"colors": {
"focusBorder": "#cba6f7",
"foreground": "#cdd6f4",
"disabledForeground": "#a6adc8",
"widget.shadow": "#18182580",
"selection.background": "#cba6f766",
"descriptionForeground": "#cdd6f4",
@PerchunPak
PerchunPak / LICENSE.md
Last active November 19, 2024 19:56
Nixpkgs build by attribute path script without evaluating entire nixpkgs

Copyright 2024 Perchun Pak

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all

Running phase: qtPreHook
@nix { "action": "setPhase", "phase": "qtPreHook" }
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/kfij1lfc3p5xgzajqpjsfnqmjkc7990b-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/yckanhib69vk0sm9jq6jl0l33n5r0m9x-0001-Add-lssl-and-lcrypto-to-liblive555_plugin_la_LIBADD.patch
patching file modules/access/Makefile.am
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
diff --git a/pkgs/by-name/ca/carburetor/package.nix b/pkgs/by-name/ca/carburetor/package.nix
index 701e87066c65..35b8384a778a 100644
--- a/pkgs/by-name/ca/carburetor/package.nix
+++ b/pkgs/by-name/ca/carburetor/package.nix
@@ -1,38 +1,67 @@
{
lib,
- fetchzip,
- python3Packages,
+ appstream,
@PerchunPak
PerchunPak / electron-unwrapped-31.7.6.log
Created December 25, 2024 19:27
nix log /nix/store/3xmv4rw48h2dfl4ij77dmqjzhiq4rli4-electron-unwrapped-31.7.6.drv
This file has been truncated, but you can view the full file.
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpackPhase completed in 40 seconds
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/qn9vd010ylciqv44d6wahrmkshysqphl-cross-compile.patch
patching file build/toolchain/linux/unbundle/BUILD.gn
applying patch /nix/store/fjrcvjbm60cyssfsh24y1fjhb3m4af9g-no-build-timestamps.patch
patching file build/compute_build_timestamp.py
Hunk #1 succeeded at 101 (offset 7 lines).
[000000003f355b80] main libvlc debug: VLC media player - 4.0.0-dev Otto Chriek
[000000003f355b80] main libvlc debug: Copyright © 1996-2024 the VideoLAN team
[000000003f355b80] main libvlc debug: revision 1e70019a37b98df18f66eacd98b98dfc8528014d
[000000003f355b80] main libvlc debug: configured with <removed>
[000000003f355b80] main libvlc debug: searching plug-in modules
[000000003f355b80] main libvlc debug: loading plugins cache file /nix/store/r9w52yiw5s33kwggvczawp8hl9gcnl66-vlc4-4.0.0-unstable-2024-12-27/lib/vlc/plugins/plugins.dat
[000000003f355b80] main libvlc debug: recursively browsing `/nix/store/r9w52yiw5s33kwggvczawp8hl9gcnl66-vlc4-4.0.0-unstable-2024-12-27/lib/vlc/plugins'
[000000003f355b80] main libvlc debug: plug-ins loaded: 583 modules
[000000003f355b80] main libvlc debug: opening config file (/home/perchun/.config/vlc/vlcrc)
[00007ffd6e5ffe88] main generic debug: looking for logger module matching "any": 4 candidates