Files
iris-context/flake.nix
T
VERSEanduse-the-fork e09f4609f6 build: support pkg managers installation (#87)
closes #71, #84, #86
- AUR
- Homebrew
- Nix
- Debian (.deb)
- RPM (.rpm)
- Aqua
- ASDF

This is my first time doing this, so there might be mistakes. If you
can't download it through any pkg manager, please leave a comment or
open an issue

---------

Co-authored-by: use-the-fork <23747916+use-the-fork@users.noreply.github.com>
2026-07-31 17:16:31 +07:00

67 lines
1.6 KiB
Nix

{
inputs = {
systems.url = "github:nix-systems/default";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake
{
inherit inputs;
}
(
{
inputs,
self,
...
}: {
systems = import inputs.systems;
perSystem = {
pkgs,
self',
...
}: {
packages = {
iris = pkgs.buildGoModule {
pname = "iris";
version = self.shortRev or "dirty";
src = pkgs.lib.cleanSource ./.;
subPackages = ["cmd/iris"];
proxyVendor = true;
vendorHash = "sha256-kBSMhUsuCKIjAXjGfl1WSjCX+tlGi9BTnkRu9ScW6M0=";
doCheck = false;
meta = with pkgs.lib; {
description = "A highly customizable, blazing fast and context-aware CLI autocomplete/navigation tool";
homepage = "https://github.com/versenilvis/iris";
license = licenses.mit;
mainProgram = "iris";
};
};
default = self'.packages.iris;
};
devShells.default = pkgs.mkShellNoCC {
# Tell Direnv to shut up.
DIRENV_LOG_FORMAT = "";
packages = [
# languages
pkgs.go
pkgs.pkl
# Tooling
pkgs.hk
pkgs.just
pkgs.alejandra
];
};
};
}
);
}