git-ignore: 1.2.0 -> 1.2.2

Diff: https://github.com/sondr3/git-ignore/compare/v1.2.0...v1.2.2

Changelog: https://github.com/sondr3/git-ignore/blob/v1.2.2/CHANGELOG.md

figsoda 4a239294 f00994e7

+21 -14
+21 -14
pkgs/applications/version-management/git-ignore/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, installShellFiles, rustPlatform, pkg-config, openssl, darwin }: 2 - 3 - with rustPlatform; 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , installShellFiles 5 + , stdenv 6 + , darwin 7 + }: 4 8 5 - buildRustPackage rec { 9 + rustPlatform.buildRustPackage rec { 6 10 pname = "git-ignore"; 7 - version = "1.2.0"; 11 + version = "1.2.2"; 8 12 9 13 src = fetchFromGitHub { 10 14 owner = "sondr3"; 11 15 repo = pname; 12 16 rev = "v${version}"; 13 - sha256 = "sha256-Bfr+4zDi6QqirlqccW1jU95eb4q82ZFG9LtT2mCPYLc="; 17 + hash = "sha256-kIRuoY0dM2t+aY4iYdik9gUpG+81sDiJLD11Bmx68FI="; 14 18 }; 15 19 16 - cargoSha256 = "sha256-ehEUI4M2IxqS6QhyqOncwP+w6IGbIlSFNIP/FEVH/JI="; 20 + cargoHash = "sha256-6sb+OW5VtA6vY6fDtsaZePZD53ehH7QawxJJlUNsrnM="; 21 + 22 + nativeBuildInputs = [ 23 + installShellFiles 24 + ]; 17 25 18 - nativeBuildInputs = [ pkg-config installShellFiles ]; 19 - buildInputs = [ openssl ] 20 - ++ lib.optionals stdenv.isDarwin [ 26 + buildInputs = lib.optionals stdenv.isDarwin [ 21 27 darwin.apple_sdk.frameworks.Security 22 28 ]; 23 29 24 30 postInstall = '' 25 - installManPage assets/git-ignore.1 26 - # There's also .elv and .ps1 completion files but I don't know where to install those 27 - installShellCompletion assets/git-ignore.{bash,fish} --zsh assets/_git-ignore 31 + assets=$releaseDir/../assets 32 + installManPage $assets/git-ignore.1 33 + installShellCompletion $assets/git-ignore.{bash,fish} --zsh $assets/_git-ignore 28 34 ''; 29 35 30 36 meta = with lib; { 31 37 description = "Quickly and easily fetch .gitignore templates from gitignore.io"; 32 38 homepage = "https://github.com/sondr3/git-ignore"; 39 + changelog = "https://github.com/sondr3/git-ignore/blob/${src.rev}/CHANGELOG.md"; 33 40 license = licenses.gpl3Plus; 34 - maintainers = [ ]; 41 + maintainers = with maintainers; [ figsoda ]; 35 42 }; 36 43 }