1 { lib, stdenv, rustPlatform, fetchFromGitHub
10 rustPlatform.buildRustPackage rec {
11 pname = "nix-template";
14 src = fetchFromGitHub {
15 name = "${pname}-${version}-src";
19 sha256 = "sha256-5Xxv9TH5rGA4VU/64YarrBIOrROWjFu3RYRcoNo70UA=";
22 cargoSha256 = "sha256-GvIE46NXNWg1kSEbffvOCwVDr0YmVMo8C8+52RDEwco=";
30 buildInputs = [ openssl ]
31 ++ lib.optional stdenv.isDarwin Security;
33 # needed for nix-prefetch-url
35 wrapProgram $out/bin/nix-template \
36 --prefix PATH : ${lib.makeBinPath [ nix ]}
38 installShellCompletion --cmd nix-template \
39 --bash <($out/bin/nix-template completions bash) \
40 --fish <($out/bin/nix-template completions fish) \
41 --zsh <($out/bin/nix-template completions zsh)
45 description = "Make creating nix expressions easy";
46 homepage = "https://github.com/jonringer/nix-template/";
47 changelog = "https://github.com/jonringer/nix-template/releases/tag/v${version}";
48 license = licenses.cc0;
49 maintainers = with maintainers; [ jonringer ];