nixpkgs/pkgs/tools/misc/disfetch/default.nix
2020-12-28 22:31:16 +03:00

30 lines
636 B
Nix

{ stdenv
, lib
, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "disfetch";
version = "1.12";
src = fetchFromGitHub {
owner = "llathasa-veleth";
repo = "disfetch";
rev = version;
sha256 = "1zm8q0fx695x28zg8ihzk3w41439v47n68cw6k551x31mls939yn";
};
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 ];
};
}