mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
80b7eadb9f
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/kcgi/versions
34 lines
905 B
Nix
34 lines
905 B
Nix
{ stdenv, pkgconfig, fetchFromGitHub, libbsd }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kcgi";
|
|
version = "0.10.8";
|
|
underscoreVersion = stdenv.lib.replaceChars ["."] ["_"] version;
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kristapsdz";
|
|
repo = pname;
|
|
rev = "VERSION_${underscoreVersion}";
|
|
sha256 = "0ha6r7bcgf6pcn5gbd2sl7835givhda1jql49c232f1iair1yqyp";
|
|
};
|
|
patchPhase = ''substituteInPlace configure \
|
|
--replace /usr/local /
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ ] ++ stdenv.lib.optionals stdenv.isLinux [ libbsd ] ;
|
|
|
|
dontAddPrefix = true;
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://kristaps.bsd.lv/kcgi;
|
|
description = "Minimal CGI and FastCGI library for C/C++";
|
|
license = licenses.isc;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.leenaars ];
|
|
};
|
|
}
|