nixpkgs/pkgs/tools/misc/disfetch/default.nix

30 lines
611 B
Nix
Raw Normal View History

2020-12-28 20:31:16 +01:00
{ stdenv
, lib
, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "disfetch";
2021-08-17 05:28:00 +02:00
version = "2.12";
2020-12-28 20:31:16 +01:00
src = fetchFromGitHub {
owner = "q60";
2020-12-28 20:31:16 +01:00
repo = "disfetch";
rev = version;
2021-08-17 05:28:00 +02:00
sha256 = "sha256-+6U5BdLmdTaFzgZmjSH7rIL9JTwIX7bFkQqm0rNuTRY=";
2020-12-28 20:31:16 +01:00
};
dontBuild = true;
installPhase = ''
install -Dm755 -t $out/bin disfetch
'';
meta = with lib; {
description = "Yet another *nix distro fetching program, but less complex";
homepage = "https://github.com/q60/disfetch";
2020-12-28 20:31:16 +01:00
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.vel ];
};
}