mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 09:49:36 +01:00
More fixes
This commit is contained in:
parent
5ba9f6cec6
commit
479befa76d
30 changed files with 101 additions and 67 deletions
|
|
@ -5,6 +5,9 @@
|
|||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, bison
|
||||
, flex
|
||||
, cmake # for resolving toml11 dep
|
||||
|
||||
, nix-util
|
||||
, nix-store
|
||||
|
|
@ -12,6 +15,7 @@
|
|||
, boost
|
||||
, boehmgc
|
||||
, nlohmann_json
|
||||
, toml11
|
||||
|
||||
# Configuration Options
|
||||
|
||||
|
|
@ -57,8 +61,12 @@ mkDerivation (finalAttrs: {
|
|||
fileset = fileset.unions [
|
||||
./meson.build
|
||||
./meson.options
|
||||
./primops/meson.build
|
||||
(fileset.fileFilter (file: file.hasExt "cc") ./.)
|
||||
(fileset.fileFilter (file: file.hasExt "hh") ./.)
|
||||
./lexer.l
|
||||
./parser.y
|
||||
(fileset.fileFilter (file: file.hasExt "nix") ./.)
|
||||
];
|
||||
};
|
||||
|
||||
|
|
@ -68,6 +76,13 @@ mkDerivation (finalAttrs: {
|
|||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
bison
|
||||
flex
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
toml11
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
@ -79,9 +94,11 @@ mkDerivation (finalAttrs: {
|
|||
] ++ lib.optional enableGC boehmgc;
|
||||
|
||||
preConfigure =
|
||||
# "Inline" .version so it's not a symlink, and includes the suffix
|
||||
# "Inline" .version so it's not a symlink, and includes the suffix.
|
||||
# Do the meson utils, without modification.
|
||||
''
|
||||
echo ${version} > .version
|
||||
cp -r ${../../build-utils-meson} build-utils-meson
|
||||
'';
|
||||
|
||||
mesonFlags = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue