X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=flakes%2Fopenarc%2Fdefault.nix;fp=flakes%2Fopenarc%2Fdefault.nix;h=c6d74c6bddf23835b8e210e0e1e3849b5657f724;hb=5e2ec9fb8628136e7f9f618c68c0e42ab086b80e;hp=0000000000000000000000000000000000000000;hpb=dfe02d8fd52e33c7d4e1a209cf486696100b88f3;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/flakes/openarc/default.nix b/flakes/openarc/default.nix new file mode 100644 index 0000000..c6d74c6 --- /dev/null +++ b/flakes/openarc/default.nix @@ -0,0 +1,20 @@ +{ stdenv, automake, autoconf, libbsd, libtool, openssl, pkg-config, libmilter, file, lib, src }: +stdenv.mkDerivation rec { + pname = "openarc"; + version = "master-${src.shortRev or "unknown"}"; + inherit src; + buildInputs = [ automake autoconf libbsd libtool openssl pkg-config libmilter ]; + + configureFlags = [ + "--with-milter=${libmilter}" + ]; + preConfigure = '' + autoreconf --force --install + sed -i -e "s@/usr/bin/file@${file}/bin/file@" ./configure + ''; + meta = { + description = "Open source ARC implementation"; + homepage = "https://github.com/trusteddomainproject/OpenARC"; + platforms = lib.platforms.unix; + }; +}