Merge pull request #311714 from isabelroses/gitprompt-rs/by-name

gitprompt-rs: move to by-name

authored by Aleksana and committed by GitHub caf90044 25778548

+12 -8
+12 -6
pkgs/applications/version-management/gitprompt-rs/default.nix pkgs/by-name/gi/gitprompt-rs/package.nix
··· 4 4 rustPlatform, 5 5 git, 6 6 }: 7 - rustPlatform.buildRustPackage rec { 7 + let 8 + version = "0.3.0"; 9 + in 10 + rustPlatform.buildRustPackage { 8 11 pname = "gitprompt-rs"; 9 - version = "0.3.0"; 12 + inherit version; 10 13 11 14 src = fetchFromGitHub { 12 15 owner = "9ary"; 13 - repo = pname; 16 + repo = "gitprompt-rs"; 14 17 rev = version; 15 18 hash = "sha256-BqI3LbG7I/0wjzJaP8bxRwTM56joLqVaQCmAydX5vQM="; 16 19 }; ··· 22 25 --replace 'Command::new("git")' 'Command::new("${git}/bin/git")' 23 26 ''; 24 27 25 - meta = with lib; { 28 + meta = { 26 29 description = "Simple Git prompt"; 27 30 homepage = "https://github.com/9ary/gitprompt-rs"; 28 - license = with licenses; [ mpl20 ]; 29 - maintainers = with maintainers; [ isabelroses cafkafk ]; 31 + license = lib.licenses.mpl20; 32 + maintainers = with lib.maintainers; [ 33 + isabelroses 34 + cafkafk 35 + ]; 30 36 mainProgram = "gitprompt-rs"; 31 37 }; 32 38 }
-2
pkgs/top-level/all-packages.nix
··· 2491 2491 2492 2492 gitnr = callPackage ../applications/version-management/gitnr { }; 2493 2493 2494 - gitprompt-rs = callPackage ../applications/version-management/gitprompt-rs/default.nix { }; 2495 - 2496 2494 gitsign = callPackage ../applications/version-management/gitsign { }; 2497 2495 2498 2496 gitstats = callPackage ../applications/version-management/gitstats { };