nix-template: 0.1.1 -> 0.1.4 (#130580)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Jonathan Ringer 2021-07-20 04:27:10 -07:00 committed by GitHub
parent b5362f0c94
commit 2e09265a54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,5 @@
{ lib, stdenv, rustPlatform, fetchFromGitHub { lib, stdenv, rustPlatform, fetchFromGitHub
, installShellFiles
, makeWrapper , makeWrapper
, nix , nix
, openssl , openssl
@ -8,18 +9,24 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "nix-template"; pname = "nix-template";
version = "0.1.1"; version = "0.1.4";
src = fetchFromGitHub { src = fetchFromGitHub {
name = "${pname}-${version}-src";
owner = "jonringer"; owner = "jonringer";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-A1b/fgSr27sfMDnTi4R3PUZfhAdLA5wUOd4yh9/4Bnk="; sha256 = "sha256-kNFhSfHUYBUOCXoD6m7thMho4tOIpRHfHGcsW8FTgkc=";
}; };
cargoSha256 = "sha256-resyY/moqLo4KWOKUvFJiOWealCmcEsLFgkN12slKN0="; cargoSha256 = "sha256-7PthFLCEt+E/Gx5//aulHYYBKZqapNEWKtKfRlDr3Pw=";
nativeBuildInputs = [
installShellFiles
makeWrapper
pkg-config
];
nativeBuildInputs = [ makeWrapper pkg-config ];
buildInputs = [ openssl ] buildInputs = [ openssl ]
++ lib.optional stdenv.isDarwin Security; ++ lib.optional stdenv.isDarwin Security;
@ -27,6 +34,11 @@ rustPlatform.buildRustPackage rec {
postInstall = '' postInstall = ''
wrapProgram $out/bin/nix-template \ wrapProgram $out/bin/nix-template \
--prefix PATH : ${lib.makeBinPath [ nix ]} --prefix PATH : ${lib.makeBinPath [ nix ]}
installShellCompletion --cmd nix-template \
--bash <($out/bin/nix-template completions bash) \
--fish <($out/bin/nix-template completions fish) \
--zsh <($out/bin/nix-template completions zsh)
''; '';
meta = with lib; { meta = with lib; {