parent
da2da3adce
commit
a31d8be5fc
49
pkgs/applications/version-management/gitnr/default.nix
Normal file
49
pkgs/applications/version-management/gitnr/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
@ -2410,6 +2410,8 @@ with pkgs;
|
|||||||
|
|
||||||
gitnuro = callPackage ../applications/version-management/gitnuro { };
|
gitnuro = callPackage ../applications/version-management/gitnuro { };
|
||||||
|
|
||||||
|
gitnr = callPackage ../applications/version-management/gitnr { };
|
||||||
|
|
||||||
gitprompt-rs = callPackage ../applications/version-management/gitprompt-rs/default.nix { };
|
gitprompt-rs = callPackage ../applications/version-management/gitprompt-rs/default.nix { };
|
||||||
|
|
||||||
gitsign = callPackage ../applications/version-management/gitsign { };
|
gitsign = callPackage ../applications/version-management/gitsign { };
|
||||||
|
Loading…
Reference in New Issue
Block a user