-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
base: master
Are you sure you want to change the base?
heynote: init at 2.1.3 #391457
Conversation
There was a problem hiding this 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, runningnix-shell
, then:
nixfmt 'pkgs/by-name/he/heynote/package.nix'
Looks good now, did not feature test, yet. |
pkgs/by-name/he/heynote/package.nix
Outdated
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; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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; | |
}; |
There was a problem hiding this comment.
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/"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
homepage = "https://heynote.com/"; | |
homepage = "https://heynote.com/"; | |
changelog = "https://github.com/heyman/heynote/releases/v${version}"; |
pkgs/by-name/he/heynote/package.nix
Outdated
mv $out/bin/${pname} $out/bin/heynote-temp | ||
mv $out/bin/heynote-temp $out/bin/heynote |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mv $out/bin/${pname} $out/bin/heynote-temp | |
mv $out/bin/heynote-temp $out/bin/heynote | |
# verify binary is present | |
stat $out/bin/heynote |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
pkgs/by-name/he/heynote/package.nix
Outdated
${desktop-file-utils}/bin/desktop-file-install --dir $out/share/applications \ | ||
--set-key Exec --set-value $out/bin/heynote \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${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 \ |
Add desktop-file-utils
to nativeBuildInputs
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.