forked from avitran0/deadlocked
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
36 lines (32 loc) · 891 Bytes
/
flake.nix
File metadata and controls
36 lines (32 loc) · 891 Bytes
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
{
description = "deadlocked dev shell for Nix users";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default-linux";
};
outputs = inputs @ {
self,
nixpkgs,
systems,
...
}: let
# Build outputs for each system
eachSystem = nixpkgs.lib.genAttrs (import systems);
pkgsFor = system:
import nixpkgs {
inherit system;
overlays = [];
};
in {
# ValveResourceFormat CLI package
packages = eachSystem (system: {
source2viewer = nixpkgs.legacyPackages.${system}.callPackage ./nix/source2viewer.nix {};
});
# Development shell
devShells = eachSystem (system: {
default = (pkgsFor system).callPackage ./nix/shell.nix {};
});
# Code formatter
formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.alejandra;
};
}