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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
661 B
Nix
Raw Normal View History

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