Skip to content

Commit

Permalink
Added flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yves Pares committed Nov 12, 2024
1 parent 79e4a42 commit 80891c3
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
27 changes: 27 additions & 0 deletions flake.lock

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

24 changes: 24 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};

outputs = inputs:
let forEachSystem = inputs.nixpkgs.lib.genAttrs inputs.nixpkgs.lib.systems.flakeExposed;
in {
packages = forEachSystem (system:
let pkgs = import inputs.nixpkgs { inherit system; };
jj-fzf = pkgs.writeShellApplication {
name = "jj-fzf";
runtimeInputs = with pkgs; [ jujutsu fzf gawk gnused ];
text = ''
${./jj-fzf} "$@"
'';
};
in {
inherit jj-fzf;
default = jj-fzf;
}
);
};
}
1 change: 1 addition & 0 deletions result

0 comments on commit 80891c3

Please sign in to comment.