Oliver Davies 2024-12-14 02:24:56 +00:00
parent 8cdc6a511d
commit 73d801d7ac
4 changed files with 28 additions and 0 deletions

21
nix/pkgs/notes.nix Normal file
View 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
'';
}