blob: 2ae7fc91320af1bd9c807892e8ed06f91186dedb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOs/nixpkgs/*.tar.gz";
flake-utils.url = "https://flakehub.com/f/numtide/flake-utils/0.1.88.tar.gz";
};
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ ];
};
inherit (pkgs.gcc13) stdenv;
oeuf-libtmi8 = stdenv.mkDerivation {
name = "oeuf-libtmi8";
src = pkgs.lib.cleanSource ./.;
nativeBuildInputs = with pkgs; [ gcc13 ];
buildInputs = with pkgs; [ arrow-cpp boost182 ];
buildPhase = ''
make libtmi8
'';
installPhase = ''
make install DESTDIR="$out"
'';
};
in
{
packages.oeuf-libtmi8 = oeuf-libtmi8;
devShells.default = pkgs.mkShell {
inputsFrom = [ oeuf-libtmi8 ];
};
formatter = pkgs.nixpkgs-fmt;
});
}
|