depot/third_party/nixpkgs/pkgs/tools/misc/disfetch/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

29 lines
661 B
Nix

{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "disfetch";
version = "3.6";
src = fetchFromGitHub {
owner = "q60";
repo = "disfetch";
rev = version;
sha256 = "sha256-/Not2jNwk3jX8TLN7CT3JXDilatSYXPaudGKNAgQDPY=";
};
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 ];
};
}