There is no changelog in the repository (anymore?). Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
50 lines
977 B
Nix
50 lines
977 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
libxkbcommon,
|
|
openssl,
|
|
stdenv,
|
|
wayland,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "gitnr";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "reemus-dev";
|
|
repo = "gitnr";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-rt82Pb//OAM20BtaT/n1grL4GTTsW2iBziSVn/OI78c=";
|
|
};
|
|
|
|
cargoHash = "sha256-ej5lFiTkynW9ZXRkZtnKqWxaqHETHtYfbLi1L1I4KiM=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
libxkbcommon
|
|
wayland
|
|
];
|
|
|
|
# requires internet access
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Create `.gitignore` files using one or more templates from TopTal, GitHub or your own collection";
|
|
homepage = "https://github.com/reemus-dev/gitnr";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
matthiasbeyer
|
|
];
|
|
mainProgram = "gitnr";
|
|
};
|
|
})
|