This commit is contained in:
Robin Appelman 2024-09-24 16:54:20 +02:00
commit f1fa085ef3
4 changed files with 276 additions and 0 deletions

23
flake.nix Normal file
View file

@ -0,0 +1,23 @@
# mill-scale -- Another rust module for flakelight
# Copyright (C) 2024 Robin Appelman <robin@icewind.nl>
# SPDX-License-Identifier: MIT
{
description = "Another rust module for flakelite";
inputs = {
flakelight.url = "github:nix-community/flakelight";
crane.url = "github:ipetkov/crane";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "flakelight/nixpkgs";
};
};
outputs = { flakelight, crane, rust-overlay, ... }: flakelight ./. {
imports = [ flakelight.flakelightModules.flakelightModule ];
flakelightModule = { lib, ... }: {
imports = [ ./mill-scale.nix ];
inputs.crane = lib.mkDefault crane;
inputs.rust-overlay = lib.mkDefault rust-overlay;
};
};
}