2024-12-14 02:24:56 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
2025-01-19 13:49:10 +00:00
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2024-12-14 02:24:56 +00:00
|
|
|
pname = "notes";
|
|
|
|
version = "0.3.0";
|
|
|
|
|
2025-01-19 13:49:10 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-12-14 02:24:56 +00:00
|
|
|
owner = "nickjj";
|
|
|
|
repo = "notes";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "gyrsTWPT8w4DsRim3jlbjvpXwX/y+7SwLaM+3LVOJdU=";
|
|
|
|
};
|
|
|
|
|
2025-01-19 13:49:10 +00:00
|
|
|
buildInputs = [ bash ];
|
2024-12-14 02:24:56 +00:00
|
|
|
|
2025-01-19 21:49:25 +00:00
|
|
|
patches = [
|
|
|
|
./create-daily-notes.patch
|
|
|
|
];
|
|
|
|
|
2024-12-14 02:24:56 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2025-01-19 21:49:25 +00:00
|
|
|
cp notes $out/bin/notes
|
2024-12-14 02:24:56 +00:00
|
|
|
chmod +x $out/bin/notes
|
|
|
|
'';
|
|
|
|
}
|