fill out murex a bit, cosmic fixes
This commit is contained in:
parent
a4ce7db9c9
commit
67702255a2
19 changed files with 426 additions and 81 deletions
16
flakes/murex-module-starship/default.nix
Normal file
16
flakes/murex-module-starship/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
src,
|
||||
...
|
||||
}:
|
||||
pkgs.stdenvNoCC.mkDerivation {
|
||||
pname = "murex-module-starship";
|
||||
version = "0.1.0";
|
||||
inherit src;
|
||||
patches = [./starship-set-time.patch];
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r ./* $out
|
||||
'';
|
||||
}
|
41
flakes/murex-module-starship/flake.lock
generated
Normal file
41
flakes/murex-module-starship/flake.lock
generated
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1728018373,
|
||||
"narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=",
|
||||
"path": "/nix/store/sdzpqjwx7pdx6lsq6llyfqqf7hspp83c-source",
|
||||
"rev": "bc947f541ae55e999ffdb4013441347d83b00feb",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs",
|
||||
"src": "src"
|
||||
}
|
||||
},
|
||||
"src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1693396396,
|
||||
"narHash": "sha256-o37H94I8TYaAaGaICmgXdNAzDWlTpWebn33FlTPx8Z8=",
|
||||
"owner": "orefalo",
|
||||
"repo": "murex-module-starship",
|
||||
"rev": "76ea5992cd6b328ceb32d1d6fb690768a745947f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "orefalo",
|
||||
"repo": "murex-module-starship",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
23
flakes/murex-module-starship/flake.nix
Normal file
23
flakes/murex-module-starship/flake.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
description = "Murex Starship module";
|
||||
|
||||
inputs = {
|
||||
src = {
|
||||
flake = false;
|
||||
url = "github:orefalo/murex-module-starship";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
src,
|
||||
...
|
||||
}: {
|
||||
overlays.murex-starship = final: _prev: {
|
||||
murex-starship = final.callPackage ./default.nix {
|
||||
inherit src;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
11
flakes/murex-module-starship/starship-set-time.patch
Normal file
11
flakes/murex-module-starship/starship-set-time.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/starship.mx 2024-10-09 21:00:49.550098036 +1100
|
||||
+++ b/starship.mx 2024-10-09 21:00:56.186187476 +1100
|
||||
@@ -44,7 +44,7 @@
|
||||
}
|
||||
|
||||
event onPrompt starship=after {
|
||||
- ENV.STARSHIP_START_TIME = datetime(--in {now} --out {unix})
|
||||
+ datetime --in {now} --out {unix} -> cast int -> set ENV.STARSHIP_START_TIME
|
||||
}
|
||||
|
||||
config set shell hint-text-func {
|
Loading…
Add table
Add a link
Reference in a new issue