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