Files
shed/flake.nix

45 lines
1.0 KiB
Nix

{
description = "A Linux shell written in Rust";
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 { inherit system; };
in
{
packages.default = pkgs.rustPlatform.buildRustPackage {
pname = "fern";
version = "0.2.0";
src = self;
cargoLock = {
lockFile = ./Cargo.lock;
};
doCheck = false;
passthru.shellPath = "/bin/fern";
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;
};
};
}) // {
nixosModules.fern = import ./nix/module.nix;
homeModules.fern = import ./nix/hm-module.nix;
overlays.default = final: prev: {
fern = self.packages.${final.stdenv.hostPlatform.system}.default;
};
};
}