dotfiles/nix/pkgs/notes/default.nix
Oliver Davies 3e9a27874a Alter notes to create daily notes
Alter notes to create daily notes instead of monthly notes.
2025-01-19 21:50:44 +00:00

28 lines
439 B
Nix

{ pkgs, ... }:
with pkgs;
stdenv.mkDerivation rec {
pname = "notes";
version = "0.3.0";
src = fetchFromGitHub {
owner = "nickjj";
repo = "notes";
rev = "v${version}";
sha256 = "gyrsTWPT8w4DsRim3jlbjvpXwX/y+7SwLaM+3LVOJdU=";
};
buildInputs = [ bash ];
patches = [
./create-daily-notes.patch
];
installPhase = ''
mkdir -p $out/bin
cp notes $out/bin/notes
chmod +x $out/bin/notes
'';
}