Add Nick Janetakis' notes
script
https://github.com/nickjj/notes https://nickjanetakis.com/blog/organize-your-text-based-notes-from-the-command-line-with-this-script
This commit is contained in:
parent
8cdc6a511d
commit
73d801d7ac
|
@ -36,6 +36,7 @@
|
||||||
./git.nix
|
./git.nix
|
||||||
./htop.nix
|
./htop.nix
|
||||||
./lsd.nix
|
./lsd.nix
|
||||||
|
./notes.nix
|
||||||
./pet.nix
|
./pet.nix
|
||||||
./phpactor.nix
|
./phpactor.nix
|
||||||
./ripgrep.nix
|
./ripgrep.nix
|
||||||
|
|
5
nix/modules/home-manager/features/cli/notes.nix
Normal file
5
nix/modules/home-manager/features/cli/notes.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [ notes ];
|
||||||
|
}
|
|
@ -6,6 +6,7 @@ in
|
||||||
{
|
{
|
||||||
build-glove80 = callPackage ./build-glove80.nix { };
|
build-glove80 = callPackage ./build-glove80.nix { };
|
||||||
custom-tmux-sessionizer = callPackage ./tmux-sessionizer.nix { };
|
custom-tmux-sessionizer = callPackage ./tmux-sessionizer.nix { };
|
||||||
|
notes = callPackage ./notes.nix { };
|
||||||
notify-battery = callPackage ./notify-battery.nix { };
|
notify-battery = callPackage ./notify-battery.nix { };
|
||||||
|
|
||||||
vimPlugins = prev.vimPlugins // {
|
vimPlugins = prev.vimPlugins // {
|
||||||
|
|
21
nix/pkgs/notes.nix
Normal file
21
nix/pkgs/notes.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
pkgs.stdenv.mkDerivation rec {
|
||||||
|
pname = "notes";
|
||||||
|
version = "0.3.0";
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "nickjj";
|
||||||
|
repo = "notes";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "gyrsTWPT8w4DsRim3jlbjvpXwX/y+7SwLaM+3LVOJdU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = with pkgs; [ bash ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp $src/notes $out/bin/notes
|
||||||
|
chmod +x $out/bin/notes
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue