Added a flake.nix

This commit is contained in:
2026-02-18 23:10:32 -05:00
parent 3b698628c6
commit d77c2f39b8

34
flake.nix Normal file
View File

@@ -0,0 +1,34 @@
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { };
in
{
packages.default = pkgs.rustPlatform.buildRustPackage {
pname = "fern";
version = "0.1.0";
src = self;
cargoLock = {
lockFile = ./Cargo.lock;
};
meta = with pkgs.lib; {
description = "A Linux shell written in Rust";
homepage = "https://github.com/km-clay/fern";
license = licenses.mit;
maintainers = [ ];
platforms = platforms.linux;
};
};
});
}