at 23.11-beta 49 lines 1.1 kB view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, pkg-config 5, libxkbcommon 6, openssl 7, stdenv 8, darwin 9, wayland 10}: 11 12rustPlatform.buildRustPackage rec { 13 pname = "gitnr"; 14 version = "0.1.3"; 15 16 src = fetchFromGitHub { 17 owner = "reemus-dev"; 18 repo = "gitnr"; 19 rev = "v${version}"; 20 hash = "sha256-Hsro0y/avI20cFQveQF17NiR3JCNlBKqXbaIce7uxBM="; 21 }; 22 23 cargoHash = "sha256-Ahzm23AStSwDSgks9j/J15/zo+EH/NgbfCBc3xBcTwQ="; 24 25 nativeBuildInputs = [ 26 pkg-config 27 ]; 28 29 buildInputs = [ 30 openssl 31 ] ++ lib.optionals stdenv.isDarwin [ 32 darwin.apple_sdk.frameworks.AppKit 33 ] ++ lib.optionals stdenv.isLinux [ 34 libxkbcommon 35 wayland 36 ]; 37 38 # requires internet access 39 doCheck = false; 40 41 meta = with lib; { 42 description = "Create `.gitignore` files using one or more templates from TopTal, GitHub or your own collection"; 43 homepage = "https://github.com/reemus-dev/gitnr"; 44 changelog = "https://github.com/reemus-dev/gitnr/blob/${src.rev}/CHANGELOG.md"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ figsoda ]; 47 mainProgram = "gitnr"; 48 }; 49}