nur-packages

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

default.nix (875B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   pkg-config,
      6   curl,
      7   openssl,
      8   memstreamHook,
      9 }:
     10 
     11 stdenv.mkDerivation (finalAttrs: {
     12   pname = "gplaces";
     13   version = "0.19.7";
     14 
     15   src = fetchFromGitHub {
     16     owner = "dimkr";
     17     repo = "gplaces";
     18     rev = "v${finalAttrs.version}";
     19     hash = "sha256-u/JO2PNEZhmE068toBLHUJoWOkX4xoOKeIQN1hiCxlg=";
     20     fetchSubmodules = true;
     21   };
     22 
     23   nativeBuildInputs = [ pkg-config ];
     24 
     25   buildInputs = [
     26     curl
     27     openssl
     28   ] ++ lib.optional stdenv.isDarwin memstreamHook;
     29 
     30   makeFlags = [ "VERSION=${finalAttrs.version}" ];
     31 
     32   installFlags = [ "PREFIX=$(out)" ];
     33 
     34   meta = {
     35     description = "A simple terminal based Gemini client";
     36     homepage = "https://github.com/dimkr/gplaces";
     37     license = lib.licenses.gpl3Plus;
     38     maintainers = [ lib.maintainers.sikmir ];
     39     platforms = lib.platforms.unix;
     40     broken = stdenv.isDarwin;
     41   };
     42 })