nur-packages

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

default.nix (776B)


      1 {
      2   lib,
      3   stdenv,
      4   rustPlatform,
      5   fetchFromSourcehut,
      6   pkg-config,
      7   openssl,
      8 }:
      9 
     10 rustPlatform.buildRustPackage (finalAttrs: {
     11   pname = "gemserv";
     12   version = "0.6.6";
     13 
     14   src = fetchFromSourcehut {
     15     owner = "~int80h";
     16     repo = "gemserv";
     17     rev = "v${finalAttrs.version}";
     18     hash = "sha256-jFh7OksYGXGWwLb4HtAuDQ7OsWxedqeLARPI20RyAgQ=";
     19   };
     20 
     21   cargoHash = "sha256-ehN8cHkY7FWMWZ9E+ETMEsPdUuupJlEGN6+76ocFI8k=";
     22 
     23   nativeBuildInputs = [ pkg-config ];
     24 
     25   buildInputs = [ openssl ];
     26 
     27   postInstall = ''
     28     install -Dm644 config.toml -t $out/share/gemserv
     29   '';
     30 
     31   meta = {
     32     description = "A gemini server written in rust";
     33     homepage = "https://git.sr.ht/~int80h/gemserv";
     34     license = lib.licenses.mit;
     35     maintainers = [ lib.maintainers.sikmir ];
     36   };
     37 })