forked from semickolon/fak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
43 lines (41 loc) · 1.1 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
{
description = "fak";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nickel.url = "github:tweag/nickel/1.3.0";
naersk.url = "github:nix-community/naersk";
};
outputs = { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
nickel = inputs.nickel.packages.${system}.default;
naersk = pkgs.callPackage inputs.naersk {};
in
{
devShells.${system}.default = pkgs.mkShell {
packages =
let
wchisp = naersk.buildPackage rec {
pname = "wchisp";
version = "0.3-git";
src = pkgs.fetchFromGitHub {
owner = "ch32-rs";
repo = pname;
rev = "4b4787243ef9bc87cbbb0d95c7482b4f7c9838f1";
hash = "sha256-Ju2DBv3R4O48o8Fk/AFXOBIsvGMK9hJ8Ogxk47f7gcU=";
};
};
in
with pkgs; [
sdcc
nickel
nls
meson
python311
ninja
wchisp
];
};
};
}