-
Notifications
You must be signed in to change notification settings - Fork 16
/
flake.nix
38 lines (32 loc) · 971 Bytes
/
flake.nix
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
{
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "nixpkgs/nixos-23.05";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
libbw64_pkg = { stdenv, cmake, ninja }:
stdenv.mkDerivation {
name = "libbw64";
src = ./.;
nativeBuildInputs = [ cmake ninja ];
doCheck = true;
};
in
rec {
packages = rec {
libbw64 = pkgs.callPackage libbw64_pkg { };
default = libbw64;
};
devShells = rec {
libbw64 = packages.libbw64.overrideAttrs (attrs: {
nativeBuildInputs = attrs.nativeBuildInputs ++ [
pkgs.clang-tools
pkgs.nixpkgs-fmt
];
});
default = libbw64;
};
});
}