depot/third_party/nixpkgs/pkgs/tools/misc/disfetch/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

29 lines
661 B
Nix

{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "disfetch";
version = "3.2";
src = fetchFromGitHub {
owner = "q60";
repo = "disfetch";
rev = version;
sha256 = "sha256-NsYfKnWwkPLd//YU8p9e8jeoM8ZmbBlzi2jkHBOXT/M=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin disfetch
runHook postInstall
'';
meta = with lib; {
description = "Yet another *nix distro fetching program, but less complex";
homepage = "https://github.com/q60/disfetch";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ vel ];
};
}