nixpkgs/pkgs/tools/text/smu/default.nix
Artturin f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00

29 lines
625 B
Nix

{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "smu";
version = "1.5";
src = fetchFromGitHub {
owner = "Gottox";
repo = "smu";
rev = "v${version}";
sha256 = "1jm7lhnzjx4q7gcwlkvsbffcy0zppywyh50d71ami6dnq182vvcc";
};
# _FORTIFY_SOURCE requires compiling with optimization (-O)
env.NIX_CFLAGS_COMPILE = "-O";
makeFlags = [
"PREFIX=${placeholder "out"}"
];
meta = with lib; {
description = "simple markup - markdown like syntax";
homepage = "https://github.com/Gottox/smu";
license = licenses.mit;
maintainers = with maintainers; [ oxzi ];
};
}