mirror of
https://github.com/tomasriveral/Nix-Git-Cherry-Picker.git
synced 2026-08-12 02:38:38 +02:00
ngcp: add script and flake.nix
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{
|
||||
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 = ./ngcp.sh;
|
||||
runtimeInputs = with pkgs; [
|
||||
git
|
||||
libnotify
|
||||
jq
|
||||
];
|
||||
};
|
||||
mainProgram = "ngpcp";
|
||||
apps.default = {
|
||||
type = "app";
|
||||
program = "${self.packages.${system}.default}/bin/ngcp";
|
||||
};
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user