nur-packages

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

default.nix (691B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   mbedtls,
      6 }:
      7 
      8 stdenv.mkDerivation (finalAttrs: {
      9   pname = "mongoose";
     10   version = "7.13";
     11 
     12   src = fetchFromGitHub {
     13     owner = "cesanta";
     14     repo = "mongoose";
     15     rev = finalAttrs.version;
     16     hash = "sha256-9XHUE8SVOG/X7SIB52C8EImPx4XZ7B/5Ojwmb0PkiuI=";
     17   };
     18 
     19   buildInputs = [ mbedtls ];
     20 
     21   buildFlags = [ "linux-libs" ];
     22 
     23   installFlags = [ "PREFIX=$(out)" ];
     24 
     25   preInstall = "mkdir -p $out/lib";
     26 
     27   meta = {
     28     description = "Embedded Web Server";
     29     homepage = "https://mongoose.ws/";
     30     license = lib.licenses.gpl2;
     31     maintainers = [ lib.maintainers.sikmir ];
     32     platforms = lib.platforms.linux;
     33     skip.ci = stdenv.isDarwin;
     34   };
     35 })