nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 962 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 python3, 6}: 7 8stdenv.mkDerivation { 9 pname = "bash-git-prompt"; 10 version = "2.7.1-unstable-2025-04-23"; 11 12 src = fetchFromGitHub { 13 owner = "magicmonty"; 14 repo = "bash-git-prompt"; 15 rev = "e733ada3e93fd9fdb6e9d1890e38e6e523522da7"; 16 hash = "sha256-6uUoYSjpGJGOgnLiIR0SdmLZKPG4GNB+e2Y9HpJUODQ="; 17 }; 18 19 buildInputs = [ python3 ]; 20 21 installPhase = '' 22 runHook preInstall 23 24 mkdir -p $out 25 26 # Copy all shell scripts 27 cp *.sh $out/ 28 29 # Copy fish script 30 cp *.fish $out/ 31 32 # Copy themes directory 33 cp -r themes $out/ 34 35 # Copy documentation 36 cp README.md $out/ 37 cp LICENSE.txt $out/ 38 39 runHook postInstall 40 ''; 41 42 meta = { 43 description = "Informative, fancy bash prompt for Git users"; 44 homepage = "https://github.com/magicmonty/bash-git-prompt"; 45 license = lib.licenses.bsd2; 46 platforms = lib.platforms.all; 47 maintainers = [ lib.maintainers.parrot7483 ]; 48 }; 49}