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