mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
05a2dfd674
replaceStrings has been in nix since 2015(nix 1.10)
so it is safe to remove the fallback
d6d5885c15
34 lines
939 B
Nix
34 lines
939 B
Nix
{ lib, stdenv, pkg-config, fetchFromGitHub, libbsd }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kcgi";
|
|
version = "0.10.8";
|
|
underscoreVersion = lib.replaceStrings ["."] ["_"] version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kristapsdz";
|
|
repo = pname;
|
|
rev = "VERSION_${underscoreVersion}";
|
|
sha256 = "0ha6r7bcgf6pcn5gbd2sl7835givhda1jql49c232f1iair1yqyp";
|
|
};
|
|
patchPhase = ''substituteInPlace configure \
|
|
--replace /usr/local /
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ ] ++ lib.optionals stdenv.isLinux [ libbsd ] ;
|
|
|
|
dontAddPrefix = true;
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
|
homepage = "https://kristaps.bsd.lv/kcgi";
|
|
description = "Minimal CGI and FastCGI library for C/C++";
|
|
license = licenses.isc;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.leenaars ];
|
|
mainProgram = "kfcgi";
|
|
};
|
|
}
|