Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ The most convenient way is by running the following bash one-liner:
curl -O https://raw.githubusercontent.com/18alantom/fex/master/install.sh && bash install.sh
```

If you are a Nix user, just run one of the following commands:

```bash
# Run the program immediately:
nix run github:18alantom/fex

# Enter a temporary shell with `fex` available:
nix shell github:18alantom/fex
```

Getting `fex` running involves:

1. Installing the `fex` executable.
Expand Down
19 changes: 19 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
stdenv,
fetchFromGitHub,
zig,
...
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fex";
version = "v0.1.1";

src = fetchFromGitHub {
owner = "18alantom";
repo = finalAttrs.pname;
rev = finalAttrs.version;
hash = "sha256-9DY+q3ucJC13oSUdj2cp40P4IeFLxCOU03h/jgjmoaU=";
};

nativeBuildInputs = [ zig.hook ];
})
58 changes: 58 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
description = "A command-line file explorer prioritizing quick navigation.";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};

outputs =
{ nixpkgs, flake-parts, ... }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-darwin"
# "aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];

perSystem =
{ pkgs, ... }:
{
packages = rec {
default = fex;
fex = pkgs.callPackage ./. { };
};
};
};
}