nixpkgs/pkgs/build-support/nix-prefetch-github/default.nix

30 lines
648 B
Nix
Raw Normal View History

2018-04-20 10:32:29 +01:00
{ python3
, fetchFromGitHub
, stdenv
}:
python3.pkgs.buildPythonApplication rec {
pname = "nix-prefetch-github";
2019-06-17 17:35:52 +01:00
version = "2.3";
2018-04-20 10:32:29 +01:00
src = fetchFromGitHub {
owner = "seppeljordan";
repo = "nix-prefetch-github";
2019-02-21 21:56:22 +00:00
rev = "v${version}";
2019-06-17 17:35:52 +01:00
sha256 = "0b2hgfyxhlqq6lyi5cr98dz6if5kl6b3kq67f2lzfkalydywl1dh";
2018-04-20 10:32:29 +01:00
};
propagatedBuildInputs = with python3.pkgs; [
attrs
click
effect
jinja2
];
meta = with stdenv.lib; {
description = "Prefetch sources from github";
homepage = https://github.com/seppeljordan/nix-prefetch-github;
license = licenses.gpl3;
maintainers = [ maintainers.seppeljordan ];
};
}