-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
48 lines (45 loc) · 1.09 KB
/
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
38
39
40
41
42
43
44
45
46
47
{
description = "dev-env for kcsh";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
matching42pkgs.url = "github:nixos/nixpkgs?rev=79b3d4bcae8c7007c9fd51c279a8a67acfa73a2a";
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs = {
self,
nixpkgs,
matching42pkgs,
flake-utils
}: flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
pkgs42 = matching42pkgs.legacyPackages.${system};
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.llvmPackages_19.stdenv;
in
{
devShell = (pkgs.mkShell.override { inherit stdenv; }) {
buildInputs = with pkgs; [
pkgs42.readline
termcap
ncurses
];
nativeBuildInputs = with pkgs42; [
readline
bash
] ++ (with pkgs; [
shellspec
graphviz
aflplusplus
cloc
valgrind
gdb
gcc
cppcheck
]);
};
}
);
}