idiosyn/package/libslz.nix

31 lines
627 B
Nix
Raw Normal View History

2024-08-18 13:47:18 +02:00
{ ... }: { lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation (finalAttrs: {
pname = "libslz";
version = "1.2.1";
src = fetchFromGitHub {
owner = "wtarreau";
repo = finalAttrs.pname;
rev = "v${finalAttrs.version}";
hash = "sha256-+3e0yTk6l8miQs/zBYSiPuj/gRWICR3QYTkV3OAHAtI=";
};
makeFlags = [
"TOPDIR=$(src)"
"PREFIX=$(out)"
];
buildFlags = [
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
"CC=cc"
];
meta = {
homepage = "http://www.libslz.org/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mvs ];
2024-08-22 16:20:18 +02:00
platforms = lib.platforms.all;
2024-08-18 13:47:18 +02:00
};
})