mirror of
https://github.com/tomasriveral/Nix-Git-Cherry-Picker.git
synced 2026-08-11 18:28:40 +02:00
30 lines
680 B
Nix
30 lines
680 B
Nix
{
|
|
description = "Nix Git Cherry Pick";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/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.writeShellApplication {
|
|
name = "ngcp";
|
|
text = builtins.readFile ./ngcp.sh;
|
|
runtimeInputs = with pkgs; [
|
|
git
|
|
libnotify
|
|
jq
|
|
fzf
|
|
];
|
|
};
|
|
apps.default = {
|
|
type = "app";
|
|
program = "${self.packages.${system}.default}/bin/ngcp";
|
|
};
|
|
});
|
|
}
|