mirror of
https://github.com/sxyazi/yazi.git
synced 2024-12-24 09:12:43 +03:00
26 lines
657 B
Nix
26 lines
657 B
Nix
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
devenv = {
|
||
|
url = "github:cachix/devenv";
|
||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, flake-utils, ... } @ inputs:
|
||
|
flake-utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||
|
yazi = pkgs.callPackage ./nix/yazi.nix { };
|
||
|
in
|
||
|
{
|
||
|
packages.default = yazi;
|
||
|
packages.yazi = yazi;
|
||
|
|
||
|
formatter = pkgs.nixpkgs-fmt;
|
||
|
|
||
|
devShells.default = import ./nix/shell.nix { inherit pkgs inputs; };
|
||
|
});
|
||
|
}
|