feat(pkgs): jj-starship
This commit is contained in:
@@ -16,9 +16,9 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
my.hm.programs.jujutsu.enable = true;
|
|
||||||
my.hm = {
|
my.hm = {
|
||||||
programs.jujutsu = {
|
programs.jujutsu = {
|
||||||
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
user = {
|
user = {
|
||||||
name = "${userfullname}";
|
name = "${userfullname}";
|
||||||
@@ -48,6 +48,8 @@ in
|
|||||||
jj = {
|
jj = {
|
||||||
ignore_timeout = true;
|
ignore_timeout = true;
|
||||||
description = "The current jj status";
|
description = "The current jj status";
|
||||||
|
# when = "${lib.getExe pkgs.jj-starship} detect";
|
||||||
|
# command = "${lib.getExe pkgs.jj-starship}";
|
||||||
when = true;
|
when = true;
|
||||||
command = ''
|
command = ''
|
||||||
jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template '
|
jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template '
|
||||||
|
|||||||
@@ -46,10 +46,13 @@
|
|||||||
final: prev:
|
final: prev:
|
||||||
let
|
let
|
||||||
paths = [
|
paths = [
|
||||||
|
# keep-sorted start
|
||||||
./fcitx5-lightly
|
./fcitx5-lightly
|
||||||
|
./jj-starship.nix
|
||||||
./mono-gtk-theme.nix
|
./mono-gtk-theme.nix
|
||||||
./ttf-wps-fonts.nix
|
./ttf-wps-fonts.nix
|
||||||
./wps-office-fonts.nix
|
./wps-office-fonts.nix
|
||||||
|
# keep-sorted end
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
builtins.listToAttrs (
|
builtins.listToAttrs (
|
||||||
|
|||||||
18
pkgs/jj-starship.nix
Normal file
18
pkgs/jj-starship.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{ fetchFromGitHub, rustPlatform }:
|
||||||
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
|
pname = "jj-starship";
|
||||||
|
version = "0.2.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "dmmulroy";
|
||||||
|
repo = finalAttrs.pname;
|
||||||
|
tag = "v${finalAttrs.version}";
|
||||||
|
hash = "sha256-wmQn1qw+jfxH9xBS7bdgWiK369bCeGV9klZzlFHrGOw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-dGutKgOG0gPDYcTODrBUmmJBl2k437E5/lz+9cFzgs4=";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
mainProgram = "jj-starship";
|
||||||
|
};
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user