diff --git a/README.md b/README.md index 11f45f5..b37e9ad 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A personal collection of unusual things * substituter: `https://attic.eleonora.gay/default` * public key: `default:3FYh8sZV8gWa7Jc5jlP7gZFK7pt3kaHRiV70ySaQ42g=` -## 52 Packages +## 53 Packages | Name | Version | Description | Homepage | |------|---------|-------------|----------| @@ -42,6 +42,7 @@ A personal collection of unusual things |`mspgcc-ti`|`9.3.1.11`|Open Source Compiler for MSP Microcontrollers|https://www.ti.com/tool/MSP430-GCC-OPENSOURCE| |`my-htop`|`5d778ea`|htop with sorting in tree mode fixed|https://htop.dev| |`nchess`|`0.0`|A curses based, UCI compatible, chess gui|https://github.com/spinojara/nchess| +|`ncps`|`0.0.11`|Nix binary cache proxy service -- with local caching and signing|https://github.com/kalbasit/ncps| |`nvflash`|`5.833.0`|NVIDIA NVFlash is used to flash the graphics card BIOS on Ampere, Turing, Pascal and all older NVIDIA cards|https://www.techpowerup.com/download/nvidia-nvflash| |`pcr-oracle`|`0.5.4`|Predict TPM PCR values for future boot|https://github.com/okirch/pcr-oracle| |`photoview`|`v2.4.0`|Photo gallery for self-hosted personal servers|https://photoview.github.io| diff --git a/packages/ncps.nix b/packages/ncps.nix new file mode 100644 index 0000000..ead2b22 --- /dev/null +++ b/packages/ncps.nix @@ -0,0 +1,26 @@ +pkgs: pkgs.buildGoModule rec { + pname = "ncps"; + version = "0.0.11"; + + src = (pkgs.fetchFromGitHub { + owner = "kalbasit"; + repo = pname; + rev = "v${version}"; + hash = "sha256-gtnG/DMRD5DYLHhb4+i4O8EHItQsnjccjHXSJ6PvUb8="; + }).overrideAttrs (old: { + postFetch = old.postFetch + '' + cd $out + find -name '*_test.go' -delete + rm -rf testdata devbox.lock + ''; + }); + + ldflags = [ "-s" "-w" ]; + vendorHash = "sha256-4aqS54T1iA4U0B3TATj+a6+inIKUg7XQLvq6U1P5mBs="; + + meta = { + description = "Nix binary cache proxy service -- with local caching and signing"; + homepage = "https://github.com/kalbasit/ncps"; + mainProgram = pname; + }; +}