Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heynote: init at 2.1.3 #391457

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

heynote: init at 2.1.3 #391457

wants to merge 4 commits into from

Conversation

jasoncrevier
Copy link

@jasoncrevier jasoncrevier commented Mar 20, 2025

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` label Mar 20, 2025
@NixOSInfra NixOSInfra added the 12. first-time contribution This PR is the author's first one; please be gentle! label Mar 20, 2025
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1 10.rebuild-linux: 1-10 labels Mar 20, 2025
Copy link

@QF0xB QF0xB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow these steps to correctly format this file:

  • Please format them using the Nixpkgs-specific nixfmt by going to the Nixpkgs root directory, running nix-shell, then:

nixfmt 'pkgs/by-name/he/heynote/package.nix'

@QF0xB
Copy link

QF0xB commented Mar 21, 2025

Looks good now, did not feature test, yet.

Comment on lines 40 to 49
meta = with lib; {
description = "Dedicated scratchpad for developers";
homepage = "https://heynote.com/";
license = with licenses; [
mit
commons-clause
];
maintainers = with maintainers; [ jasoncrevier ];
platforms = platforms.x86_64;
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
meta = with lib; {
description = "Dedicated scratchpad for developers";
homepage = "https://heynote.com/";
license = with licenses; [
mit
commons-clause
];
maintainers = with maintainers; [ jasoncrevier ];
platforms = platforms.x86_64;
};
meta = {
description = "Dedicated scratchpad for developers";
homepage = "https://heynote.com/";
license = with lib.licenses; [
mit
commons-clause
];
maintainers = with lib.maintainers; [ jasoncrevier ];
platforms = lib.platforms.x86_64;
};

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And add mainProgram = "heynote" to meta


meta = with lib; {
description = "Dedicated scratchpad for developers";
homepage = "https://heynote.com/";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
homepage = "https://heynote.com/";
homepage = "https://heynote.com/";
changelog = "https://github.com/heyman/heynote/releases/v${version}";

Comment on lines 30 to 31
mv $out/bin/${pname} $out/bin/heynote-temp
mv $out/bin/heynote-temp $out/bin/heynote
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
mv $out/bin/${pname} $out/bin/heynote-temp
mv $out/bin/heynote-temp $out/bin/heynote
# verify binary is present
stat $out/bin/heynote

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change I get the error: cp: cannot stat '/nix/store/s1xsf1cvy298sdgd4m1ma6bnnhl6mk6p-heynote-2.1.3-extracted/LICENSE.heynote.txt': No such file or directory

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this change, but to the line above.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're correct, thanks -- removed that above line and it builds.

Comment on lines 32 to 33
${desktop-file-utils}/bin/desktop-file-install --dir $out/share/applications \
--set-key Exec --set-value $out/bin/heynote \
Copy link
Member

@FliegendeWurst FliegendeWurst Mar 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
${desktop-file-utils}/bin/desktop-file-install --dir $out/share/applications \
--set-key Exec --set-value $out/bin/heynote \
desktop-file-install --dir $out/share/applications \
--set-key Exec --set-value heynote \

#308324

Add desktop-file-utils to nativeBuildInputs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants