Skip to content

Commit

Permalink
naiveproxy-bin: init at 128.0.6613.40-1
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Sep 23, 2024
1 parent d622fa3 commit e695688
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions pkgs/by-name/naiveproxy-bin/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{ stdenv
, fetchurl
, autoPatchelfHook
, lib
, ...
}:
stdenv.mkDerivation rec {
pname = "naiveproxy";
version = "128.0.6613.40-1";
preferLocalBuild = true;

src = fetchurl {
aarch64-linux = {
url = "https://github.com/klzgrad/naiveproxy/releases/download/v${version}/naiveproxy-v${version}-linux-arm64.tar.xz";
hash = "sha256-xs2VH5DWR0Q0JphFNL/dthaWk6gnHY5Iw0TDEDyA3LY=";
};
x86_64-linux = {
url = "https://github.com/klzgrad/naiveproxy/releases/download/v${version}/naiveproxy-v${version}-linux-x64.tar.xz";
hash = "sha256-wvORRJ3fepQpjX35Ks3U/8jBJhSqsGLyUDauzClUmYU=";
};
}.${stdenv.system} or (throw "naiveproxy-bin: ${stdenv.system} is unsupported.");

nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ stdenv.cc.cc.libgcc ];

installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -Dm755 naive $out/bin/naiveproxy
mkdir -p $out/share/doc/naiveproxy
install -Dm644 -t $out/share/doc/naiveproxy LICENSE USAGE.txt
runHook postInstall
'';

meta = {
description = "Make a fortune quietly";
homepage = "https://github.com/klzgrad/naiveproxy";
downloadPage = "https://github.com/klzgrad/naiveproxy/releases";
changelog = "https://github.com/klzgrad/naiveproxy/releases/tag/v${version}";
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
license = lib.licenses.bsd3;
mainProgram = "naiveproxy";
maintainers = with lib.maintainers; [ kwaa ];
platforms = lib.platforms.linux;
};
}

0 comments on commit e695688

Please sign in to comment.