Closed Artturin closed 2 years ago
nix-template rust --from-url github.com/jonringer/nix-template --stdout
Determining latest release for nix-template
Determining sha256 for nix-template
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "nix-template";
version = "0.1.4";
src = fetchFromGitHub {
owner = "jonringer";
repo = pname;
rev = "v${version}";
sha256 = "0iw2ag0mnb373kgi39c8sgi6ij44xmpfl0vs1471aq6ly54n3lch";
};
cargoSha256 = "0000000000000000000000000000000000000000000000000000";
buildInputs = [ ];
meta = with lib; {
description = "Make creating nix expressions easy";
homepage = "github.com/jonringer/nix-template";
license = licenses.cc0;
maintainers = with maintainers; [ artturin ];
};
}
./result/bin/nix-template rust --from-url github.com/jonringer/nix-template --stdout
Determining latest release for nix-template
Determining sha256 for nix-template
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "nix-template";
version = "0.1.4";
src = fetchFromGitHub {
owner = "jonringer";
repo = pname;
rev = "v${version}";
sha256 = "0iw2ag0mnb373kgi39c8sgi6ij44xmpfl0vs1471aq6ly54n3lch";
};
cargoSha256 = "0000000000000000000000000000000000000000000000000000";
buildInputs = [ ];
meta = with lib; {
description = "Make creating nix expressions easy";
homepage = "https://github.com/jonringer/nix-template";
license = licenses.cc0;
maintainers = with maintainers; [ artturin ];
};
}
Thanks :)
before
after