mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
kamid: unbreak on gcc 14, modernize
This commit is contained in:
parent
f90d0a338d
commit
f0efcd230b
1 changed files with 17 additions and 10 deletions
|
@ -1,20 +1,20 @@
|
||||||
{
|
{
|
||||||
stdenv,
|
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchurl,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
libevent,
|
libevent,
|
||||||
libressl,
|
libressl,
|
||||||
libbsd,
|
|
||||||
fetchurl,
|
|
||||||
readline,
|
readline,
|
||||||
|
libbsd,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "kamid";
|
pname = "kamid";
|
||||||
version = "0.2";
|
version = "0.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/omar-polo/kamid/releases/download/${version}/${pname}-${version}.tar.gz";
|
url = "https://github.com/omar-polo/kamid/releases/download/${finalAttrs.version}/kamid-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "sha256-23LgcZ+R6wcUz1fZA+IbhyshfQOTyiFPZ+uKVwOh680=";
|
sha256 = "sha256-23LgcZ+R6wcUz1fZA+IbhyshfQOTyiFPZ+uKVwOh680=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,13 +29,20 @@ stdenv.mkDerivation rec {
|
||||||
libbsd
|
libbsd
|
||||||
];
|
];
|
||||||
|
|
||||||
|
env.NIX_CFLAGS_COMPILE = toString [
|
||||||
|
# client.c:381:13: error: implicit declaration of function 'setgroups'; did you mean 'getgroups'?
|
||||||
|
"-Wno-error=implicit-function-declaration"
|
||||||
|
# ftp.c:1585:22: error: passing argument 1 of 'log_procinit' makes pointer from integer without a cast
|
||||||
|
"-Wno-error=int-conversion"
|
||||||
|
];
|
||||||
|
|
||||||
makeFlags = [ "AR:=$(AR)" ];
|
makeFlags = [ "AR:=$(AR)" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "FREE, easy-to-use and portable implementation of a 9p file server daemon for UNIX-like systems";
|
description = "FREE, easy-to-use and portable implementation of a 9p file server daemon for UNIX-like systems";
|
||||||
homepage = "https://kamid.omarpolo.com";
|
homepage = "https://kamid.omarpolo.com";
|
||||||
license = licenses.isc;
|
license = lib.licenses.isc;
|
||||||
maintainers = with maintainers; [ heph2 ];
|
maintainers = with lib.maintainers; [ heph2 ];
|
||||||
platforms = platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue