Refactor
All checks were successful
/ check (push) Successful in 1m27s

This commit is contained in:
Oliver Davies 2025-07-09 06:54:21 +01:00
parent 5227e82c15
commit d18476da73
16 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,13 @@
diff --git a/notes b/notes
index 3351903..34364bf 100755
--- a/notes
+++ b/notes
@@ -14,7 +14,7 @@ set -e
readonly NOTES_DIRECTORY="${NOTES_DIRECTORY:-${HOME}/notes}"
readonly NOTES_EDITOR="${EDITOR}"
-readonly NOTES_FILE="$(date +%Y-%m).txt"
+readonly NOTES_FILE="$(date +%Y-%m-%d).txt"
readonly NOTES_PATH="${NOTES_DIRECTORY}/${NOTES_FILE}"
if [ ! -d "${NOTES_DIRECTORY}" ]; then

View file

@ -0,0 +1,27 @@
{ pkgs, ... }:
with pkgs;
stdenv.mkDerivation rec {
pname = "notes";
version = "unstable-2024-12-07";
src = fetchFromGitHub {
owner = "nickjj";
repo = "notes";
rev = "f4f0aab865c19132484a2c3998cd984bdb3b9514";
sha256 = "sha256-y5SkS+22tW9wf3gH26NHSnrnJ0rkBWSgKvansP8Hlbg=";
};
buildInputs = [ bash ];
patches = [
./change-filename-format.patch
];
installPhase = ''
mkdir -p $out/bin
cp notes $out/bin/notes
chmod +x $out/bin/notes
'';
}