diff options
author | fortuneteller2k <lythe1107@gmail.com> | 2021-05-22 13:58:19 +0800 |
---|---|---|
committer | fortuneteller2k <lythe1107@gmail.com> | 2021-05-22 13:59:44 +0800 |
commit | 76c2b90825516f0838fbc16cd06843ca061ff6b6 (patch) | |
tree | a430e2fa85495904c5b066913ed3485519605e97 /pkgs/tools/misc/bfetch | |
parent | 2ac25ed56ea9da4ae42ad2d70c64aec02a13c94b (diff) |
bfetch: init at unstable-2021-05-21
Diffstat (limited to 'pkgs/tools/misc/bfetch')
-rw-r--r-- | pkgs/tools/misc/bfetch/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/misc/bfetch/default.nix b/pkgs/tools/misc/bfetch/default.nix new file mode 100644 index 0000000000000..107f2cd945285 --- /dev/null +++ b/pkgs/tools/misc/bfetch/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenvNoCC, fetchFromGitHub, bash }: + +stdenvNoCC.mkDerivation rec { + pname = "bfetch"; + version = "unstable-2021-05-21"; + + src = fetchFromGitHub { + owner = "NNBnh"; + repo = pname; + rev = "ef88e9d3f815e5074efc8ef4b7f32be6818130f2"; + sha256 = "sha256-jS9zI8b+z3KbI+LeHFwIMJfEmAKSzO8HRZ2rk35hJCk="; + }; + + buildInputs = [ bash ]; + + postPatch = '' + patchShebangs --host bin/bfetch + ''; + + makeFlags = [ "PREFIX=$(out)" ]; + + meta = with lib; { + description = "A SuperB general-purpose fetch displayer written in portable sh"; + homepage = "https://github.com/NNBnh/bfetch"; + license = licenses.gpl3Only; + platforms = platforms.all; + maintainers = with maintainers; [ fortuneteller2k ]; + }; +} |