2021-08-22 07:53:02 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "disfetch";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "3.6";
|
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;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-/Not2jNwk3jX8TLN7CT3JXDilatSYXPaudGKNAgQDPY=";
|
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
|
|
|
};
|
|
|
|
}
|