2021-08-22 07:53:02 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "disfetch";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "2.15";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-08-10 14:31:46 +00:00
|
|
|
owner = "q60";
|
2021-01-05 17:05:55 +00:00
|
|
|
repo = "disfetch";
|
|
|
|
rev = version;
|
2021-08-27 14:25:00 +00:00
|
|
|
sha256 = "sha256-1BxBeZfZK/vjUgTZknQLTLyWnI4LYyc1BmQeMcbwFP8=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-08-22 07:53:02 +00:00
|
|
|
runHook preInstall
|
2021-01-05 17:05:55 +00:00
|
|
|
install -Dm755 -t $out/bin disfetch
|
2021-08-22 07:53:02 +00:00
|
|
|
runHook postInstall
|
2021-01-05 17:05:55 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Yet another *nix distro fetching program, but less complex";
|
2021-08-10 14:31:46 +00:00
|
|
|
homepage = "https://github.com/q60/disfetch";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2021-08-22 07:53:02 +00:00
|
|
|
maintainers = with maintainers; [ vel ];
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
}
|