Skip to content

Commit

Permalink
Updated sources and fixed source build
Browse files Browse the repository at this point in the history
  • Loading branch information
Thesola10 committed Feb 24, 2025
1 parent 90fb7ae commit cd7129d
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 26 deletions.
36 changes: 18 additions & 18 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
{ packages = rec
{ default = nixie;
nixie = pkgs.callPackage ./. { inherit amber-lang; };
sources = pkgs.callPackage ./sources {};
sources = pkgs.callPackage ./sources
{ nix-source = nix;
};
static-bins = import ./static-bins
{ inherit nixpkgs fakedir pkgs;
nix-source = nix;
Expand Down
4 changes: 2 additions & 2 deletions sources/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ WGET := wget
BOOST_VER := 1.87.0
BOOST_ARCHIVE := $(WORKDIR)/boost.tar.bz2

BOOST_ADD_HEADERS = core,utility,io,system,thread,context,lexical_cast,config,format,coroutine2,container,chrono,atomic,predef,move,assert,detail,type_traits,intrusive,mpl,date_time,bind,align,preprocessor,ratio,exception,smart_ptr,numeric,functional,container_hash,describe,tuple,iterator,function,integer,type_index,algorithm,range,concept,optional,mp11
BOOST_ADD_MODULES = system,thread,context,format,coroutine2,container,chrono,atomic,optional
BOOST_ADD_HEADERS = core,utility,io,system,thread,context,lexical_cast,config,format,coroutine,container,chrono,atomic,predef,move,assert,detail,type_traits,intrusive,mpl,date_time,bind,align,preprocessor,ratio,exception,smart_ptr,numeric,functional,container_hash,describe,tuple,iterator,function,integer,type_index,algorithm,range,concept,optional,mp11
BOOST_ADD_MODULES = assert,static_assert,throw_exception,integer,type_traits,move,mpl,ratio,variant2,mp11,winapi,typeof,utility,intrusive,pool,smart_ptr,exception,system,predef,thread,context,format,coroutine,container,chrono,atomic,optional

boost-shaved.tar.gz: $(BOOST_ARCHIVE)
@mkdir -p $(WORKDIR)
Expand Down
12 changes: 8 additions & 4 deletions sources/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{ stdenv, boost, openssl, lowdown, nlohmann_json, brotli, libsodium, editline
, gnutar, coreutils, findutils, python3, nix
, meson, automake, autoconf-archive, autoconf, m4, bc, libtool, pkg-config, ... }:
, meson, automake, autoconf-archive, autoconf, m4, bc, libtool, pkg-config
# External source for Nix
, nix-source ? nix.src
, ... }:

let
mkConfiguredSrc = { pkg, confScript, patches ? [], dest?pkg.pname }:
mkConfiguredSrc = { pkg, confScript, src ? pkg.src, patches ? pkg.patches, dest ? pkg.pname }:
stdenv.mkDerivation {
inherit (pkg) version src;
inherit dest patches;
inherit (pkg) version;
inherit dest patches src;
pname = "${pkg.pname}-configured-sources";

configurePhase = confScript;
Expand All @@ -33,6 +36,7 @@ let

nix_configured_src = mkConfiguredSrc
{ pkg = nix;
src = nix-source;
confScript = ''
mkdir -p $out
cp -r . $out/nix
Expand Down
2 changes: 1 addition & 1 deletion src/builders/boost.ab
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { pull_source_file } from "../resources.ab"

import { pkg_exists, step_title, get_source_root } from "./common.ab"

const modules = ["chrono", "container", "context", "system", "thread"]
const modules = ["predef", "chrono", "container", "context", "coroutine", "system", "thread"]

/// Check that the Boost modules we need exist on the system.
///
Expand Down

0 comments on commit cd7129d

Please sign in to comment.