Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,6 @@ dist

# Finder (MacOS) folder config
.DS_Store

# Direnv folder (generated by '.envrc')
.direnv/
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};

outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
packages.x86_64-linux.default = self.packages.x86_64-linux.ghosttime;
packages.x86_64-linux.ghosttime = pkgs.buildNpmPackage {
pname = "ghosttime";
version = "1.3.0";

src = ./.;
npmDepsHash = "sha256-+GgELPRO4kcncpugY1hd8xgLH1gn71ow9VU99GZwRU8=";

nativeBuildInputs = with pkgs; [ bun ];
buildInputs = with pkgs; [ nodejs ];

meta. description = " Ghostty animation for any terminal with customizable colors";
};

devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = with pkgs; [
nodejs
bun
self.packages.x86_64-linux.ghosttime
];
};
};
}
Loading