nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (715B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5 }:
      6 
      7 stdenv.mkDerivation (finalAttrs: {
      8   pname = "gt-bash-client";
      9   version = "1.2";
     10 
     11   src = fetchFromGitHub {
     12     owner = "OPHoperHPO";
     13     repo = "GT-bash-client";
     14     rev = finalAttrs.version;
     15     hash = "sha256-dVtwuZsF9ExH6qadUO2MJiWmQ/elTKaVZAp+o3b6XUg=";
     16   };
     17 
     18   installPhase = ''
     19     install -Dm755 translate.sh $out/bin/gt-bash-client
     20   '';
     21 
     22   meta = {
     23     description = "Get translated text from your terminal! Console Google Translate Script (bash+curl+sed)";
     24     homepage = "https://github.com/OPHoperHPO/GT-bash-client";
     25     license = lib.licenses.mit;
     26     maintainers = [ lib.maintainers.sikmir ];
     27     platforms = lib.platforms.all;
     28     skip.ci = true;
     29   };
     30 })