nur-packages

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

default.nix (777B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   validatePkgConfig,
      6 }:
      7 
      8 stdenv.mkDerivation (finalAttrs: {
      9   pname = "imsg-compat";
     10   version = "7.4.0";
     11 
     12   src = fetchFromGitHub {
     13     owner = "bsd-ac";
     14     repo = "imsg-compat";
     15     rev = finalAttrs.version;
     16     hash = "sha256-t1nEdsqRtcXWBkkspUb/lQ0PXd2ziaTutnqgwSaxAR4=";
     17   };
     18 
     19   postPatch = ''
     20     substituteInPlace libimsg.pc.in --subst-var-by LIBDIR "lib"
     21   '';
     22 
     23   nativeBuildInputs = [ validatePkgConfig ];
     24 
     25   makeFlags = [ "PREFIX=$(out)" ];
     26 
     27   meta = {
     28     description = "Unofficial port of OpenBSD's imsg utilities";
     29     homepage = "https://github.com/bsd-ac/imsg-compat";
     30     license = lib.licenses.isc;
     31     maintainers = [ lib.maintainers.sikmir ];
     32     platforms = lib.platforms.linux;
     33     skip.ci = stdenv.isDarwin;
     34   };
     35 })