-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
32 lines (31 loc) · 1.07 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
{
description = "devShell using packages, overlays, etc. from ttrei dotfiles";
inputs.ttrei.url = "github:ttrei/dotfiles";
# Use a local copy (useful when making changes in dotfiles):
# inputs.ttrei.url = "path:/home/reinis/dotfiles";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, ttrei, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = ttrei.nixpkgs.legacyPackages.${system};
mypkgs = ttrei.mypkgs.${system};
in rec {
# Expose the used packages as flake output, so you can enter their build environment like this:
# nix develop .#zutty
# The output must be named "packages" for "nix develop" to recognize it.
packages = {
# zutty = mypkgs.zutty;
};
devShells.default = pkgs.mkShell {
packages = with pkgs; [
bashInteractive
pkg-config
libjpeg
libpng
libtiff
libwebp
SDL2.dev
SDL2_image
] ++ pkgs.lib.attrsets.mapAttrsToList (name: value: value) packages;
};
});
}