2021-08-22 07:53:02 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "disfetch";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "3.7";
|
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;
|
2023-03-24 00:07:29 +00:00
|
|
|
sha256 = "sha256-xzOE+Pnx0qb3B9vWWrF5Q0nhUo0QYBUO6j6al8N3deY=";
|
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
|
|
|
};
|
|
|
|
}
|