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

30 lines
635 B
Nix
Raw Normal View History

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