init: public

This commit is contained in:
2025-04-13 15:09:14 +08:00
parent 5995c2050b
commit 50247d94e8
253 changed files with 12964 additions and 567 deletions

37
pkgs/translate-shell.nix Normal file
View File

@@ -0,0 +1,37 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation rec {
pname = "translate-shell";
version = "0.9.7.1";
src = fetchFromGitHub {
owner = "soimort";
repo = "${pname}";
rev = "gh-pages";
hash = "sha256-YQevXwslWzHen9n+Fn0a+oNx/EKg0Kd/Ge8ksYP0ekY=";
};
phases = [
"unpackPhase"
"installPhase"
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
patchShebangs ./trans
cp ./trans $out/bin/trans
runHook postInstall
'';
meta = {
description = "Command-line translator using Google Translate, Bing Translator, Yandex.Translate, etc.";
homepage = "https://github.com/soimort/translate-shell";
license = lib.licenses.unlicense;
};
}