nix-template: 0.1.0 -> 0.1.1

This commit is contained in:
Jonathan Ringer 2021-07-11 15:51:54 -07:00
parent 00ab017fec
commit 70580fdab7
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
2 changed files with 23 additions and 5 deletions

View File

@ -1,17 +1,33 @@
{ lib, rustPlatform, fetchFromGitHub }:
{ lib, stdenv, rustPlatform, fetchFromGitHub
, makeWrapper
, nix
, openssl
, pkg-config
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "nix-template";
version = "0.1.0";
version = "0.1.1";
src = fetchFromGitHub {
owner = "jonringer";
repo = pname;
rev = "v${version}";
sha256 = "1h6xdvhzg7nb0s82b3r5bsh8bfdb1l5sm7fa24lfwd396xp9yyig";
sha256 = "sha256-A1b/fgSr27sfMDnTi4R3PUZfhAdLA5wUOd4yh9/4Bnk=";
};
cargoSha256 = "0hp31b5q4s6grkha2jz55945cbjkqdpvx1l8m49zv5prczhd7mz5";
cargoSha256 = "sha256-resyY/moqLo4KWOKUvFJiOWealCmcEsLFgkN12slKN0=";
nativeBuildInputs = [ makeWrapper pkg-config ];
buildInputs = [ openssl ]
++ lib.optional stdenv.isDarwin Security;
# needed for nix-prefetch-url
postInstall = ''
wrapProgram $out/bin/nix-template \
--prefix PATH : ${lib.makeBinPath [ nix ]}
'';
meta = with lib; {
description = "Make creating nix expressions easy";

View File

@ -3079,7 +3079,9 @@ in
nix-output-monitor = haskell.lib.justStaticExecutables (haskellPackages.nix-output-monitor);
nix-template = callPackage ../tools/package-management/nix-template { };
nix-template = callPackage ../tools/package-management/nix-template {
inherit (darwin.apple_sdk.frameworks) Security;
};
nodepy-runtime = with python3.pkgs; toPythonApplication nodepy-runtime;