jonringer / nix-template

Make creating nix expressions easy
Creative Commons Zero v1.0 Universal
205 stars 8 forks source link

add https:// to homepage github link #19

Closed Artturin closed 2 years ago

Artturin commented 2 years ago

before

nix-template --stdout stdenv --from-url=https://github.com/varlink/libvarlink
Determining latest release for libvarlink
Determining sha256 for libvarlink
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "libvarlink";
  version = "22";

  src = fetchFromGitHub {
    owner = "varlink";
    repo = pname;
    rev = "version";
    sha256 = "1i15227vlc9k4276r833ndhxrcys9305pf6dga1j0alx2vj85yz2";
  };

  buildInputs = [ ];

  meta = with lib; {
    description = "C implementation of the Varlink protocol and command line tool";
    homepage = "github.com/varlink/libvarlink";
    license = licenses.CHANGE;
    maintainers = with maintainers; [ artturin ];
  };
}

after

./result/bin/nix-template --stdout stdenv --from-url=https://github.com/varlink/libvarlink
Determining latest release for libvarlink
Determining sha256 for libvarlink
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "libvarlink";
  version = "22";

  src = fetchFromGitHub {
    owner = "varlink";
    repo = pname;
    rev = "version";
    sha256 = "1i15227vlc9k4276r833ndhxrcys9305pf6dga1j0alx2vj85yz2";
  };

  buildInputs = [ ];

  meta = with lib; {
    description = "C implementation of the Varlink protocol and command line tool";
    homepage = "https://github.com/varlink/libvarlink";
    license = licenses.CHANGE;
    maintainers = with maintainers; [ artturin ];
  };
}
Artturin commented 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 ];
  };
}
jonringer commented 2 years ago

Thanks :)