notion: 4.0.2 -> 4.0.3; fix build failure (#401134)
This commit is contained in:
@@ -19,20 +19,24 @@
|
||||
xmessage,
|
||||
xterm,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "notion";
|
||||
version = "4.0.2";
|
||||
version = "4.0.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "raboof";
|
||||
repo = "notion";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-u5KoTI+OcnQu9m8/Lmsmzr8lEk9tulSE7RRFhj1oXJM=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-Ll4thDS8fHxkm2IuGjePPVPyPPrz7yDzpKVloFuk/yE=";
|
||||
};
|
||||
|
||||
# error: 'PATH_MAX' undeclared
|
||||
postPatch = ''
|
||||
# Fix build failure due missing headers
|
||||
sed -i '1i#define _POSIX_C_SOURCE 200809L' mod_notionflux/notionflux/notionflux.c
|
||||
sed -i '2i#include <stdio.h>' mod_notionflux/notionflux/notionflux.c
|
||||
sed -i '3i#include <string.h>' mod_notionflux/notionflux/notionflux.c
|
||||
|
||||
# error: 'PATH_MAX' undeclared
|
||||
sed 1i'#include <linux/limits.h>' -i mod_notionflux/notionflux/notionflux.c
|
||||
'';
|
||||
|
||||
@@ -92,6 +96,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
maintainers = with lib.maintainers; [
|
||||
jfb
|
||||
raboof
|
||||
NotAShelf
|
||||
];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user