treewide: simplify rev/repo arguments in src

+ use fetchFromGithub where possible
This commit is contained in:
Pavol Rusnak
2020-11-01 23:39:49 +01:00
committed by Jonathan Ringer
parent c6afa8820b
commit 2c931312ce
86 changed files with 148 additions and 134 deletions

View File

@@ -1,10 +1,13 @@
{stdenv, fetchgit, cmake} :
{stdenv, fetchFromGitHub, cmake} :
stdenv.mkDerivation {
name = "ddate-0.2.2";
src = fetchgit {
url = "https://github.com/bo0ts/ddate";
rev = "refs/tags/v0.2.2";
stdenv.mkDerivation rec {
pname = "ddate";
version = "0.2.2";
src = fetchFromGitHub {
owner = "bo0ts";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "1qchxnxvghbma6gp1g78wnjxsri0b72ha9axyk31cplssl7yn73f";
};
@@ -14,7 +17,7 @@ stdenv.mkDerivation {
homepage = "https://github.com/bo0ts/ddate";
description = "Discordian version of the date program";
license = stdenv.lib.licenses.publicDomain;
maintainers = with stdenv.lib.maintainers; [kovirobi];
maintainers = with stdenv.lib.maintainers; [ kovirobi ];
platforms = stdenv.lib.platforms.all;
};
}

View File

@@ -8,7 +8,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "NerdyPepper";
repo = "${pname}";
repo = pname;
rev = "6ce0fc0212a34ffb647b24d9d903029ac4518165";
sha256 = "10242vnq2ph0g3p2hdacs4lmx3f474xm04nadplxbpv9xh4nbag3";
};

View File

@@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "nix-community";
repo = "nix-direnv";
rev = "${version}";
rev = version;
sha256 = "sha256-xMz6e0OLeB3eltGrLV3Hew0lMjH5LSgqJ1l7JT2Ho/M=";
};

View File

@@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "thkukuk";
repo = "${pname}";
repo = pname;
rev = "v${version}";
sha256 = "006l1f824r9bcbwn1s1vbs33cdwhs66jn6v97yas597y884y40z9";
};