gitnr: init at 0.1.0

https://github.com/reemus-dev/gitnr
This commit is contained in:
figsoda 2023-09-01 12:23:57 -04:00 committed by Anderson Torres
parent da2da3adce
commit a31d8be5fc
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libxkbcommon
, openssl
, stdenv
, darwin
, wayland
}:
rustPlatform.buildRustPackage rec {
pname = "gitnr";
version = "0.1.0";
src = fetchFromGitHub {
owner = "reemus-dev";
repo = "gitnr";
rev = "v${version}";
hash = "sha256-5HZT/e53e2dUMFnT+4a5GJk3JqJu5+62yxrsnNfSqD8=";
};
cargoHash = "sha256-rO8qHa+GI76s5CN52aMa58W8ERuTWQtQ96jpLbXKzOs=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
] ++ lib.optionals stdenv.isLinux [
libxkbcommon
wayland
];
# requires internet access
doCheck = false;
meta = with lib; {
description = "Create `.gitignore` files using one or more templates from TopTal, GitHub or your own collection";
homepage = "https://github.com/reemus-dev/gitnr";
changelog = "https://github.com/reemus-dev/gitnr/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "gitnr";
};
}

View file

@ -2410,6 +2410,8 @@ with pkgs;
gitnuro = callPackage ../applications/version-management/gitnuro { };
gitnr = callPackage ../applications/version-management/gitnr { };
gitprompt-rs = callPackage ../applications/version-management/gitprompt-rs/default.nix { };
gitsign = callPackage ../applications/version-management/gitsign { };