nur-packages

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

default.nix (650B)


      1 { lib, stdenv, fetchFromGitHub, memstreamHook }:
      2 
      3 stdenv.mkDerivation rec {
      4   pname = "chibicc";
      5   version = "2020-12-07";
      6 
      7   src = fetchFromGitHub {
      8     owner = "rui314";
      9     repo = "chibicc";
     10     rev = "90d1f7f199cc55b13c7fdb5839d1409806633fdb";
     11     hash = "sha256-sGSPQv9JPXTnyv+7CnmzWq1objCJRctK4wKII8GM26s=";
     12   };
     13 
     14   buildInputs = lib.optional stdenv.isDarwin memstreamHook;
     15 
     16   installPhase = ''
     17     install -Dm755 chibicc -t $out/bin
     18   '';
     19 
     20   meta = with lib; {
     21     description = "A small C compiler";
     22     inherit (src.meta) homepage;
     23     license = licenses.mit;
     24     platforms = platforms.unix;
     25     maintainers = [ maintainers.sikmir ];
     26   };
     27 }