-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
31 lines (29 loc) · 948 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
{
description = "Development environment for this project";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } ({ lib, ... }: {
systems = lib.systems.flakeExposed;
perSystem = { pkgs, ... }: {
packages = {
nixos-image = pkgs.callPackage ./nixos-image.nix { };
};
devShells.default = pkgs.linuxPackages.kernel.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [
pkgs.bashInteractive
pkgs.mkuimage
pkgs.just
pkgs.u-root
pkgs.qemu_kvm
(pkgs.runCommand "busybox" {} ''
mkdir -p $out/bin
ln -s ${pkgs.busybox}/bin/busybox $out/bin/busybox
'')
];
});
};
});
}