nur-packages

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

default.nix (711B)


      1 { lib, buildGoModule, fetchFromSourcehut, scdoc }:
      2 
      3 buildGoModule rec {
      4   pname = "astronaut";
      5   version = "0.1.0";
      6 
      7   src = fetchFromSourcehut {
      8     owner = "~adnano";
      9     repo = pname;
     10     rev = version;
     11     hash = "sha256-42n7XB7hJcuB7vvWB2chUUWFyZQkRTsdUnqEloU22GU=";
     12   };
     13 
     14   nativeBuildInputs = [ scdoc ];
     15 
     16   vendorSha256 = "sha256-7SyawlfJ9toNVuFehGr5GQF6mNmS9E4kkNcqWllp8No=";
     17 
     18   installPhase = ''
     19     runHook preInstall
     20     make PREFIX=$out install
     21     runHook postInstall
     22   '';
     23 
     24   meta = with lib; {
     25     description = "A Gemini browser for the terminal";
     26     inherit (src.meta) homepage;
     27     license = licenses.gpl3Only;
     28     maintainers = [ maintainers.sikmir ];
     29     platforms = platforms.unix;
     30   };
     31 }