brightnessctl: init at 0.3.2#42102
brightnessctl: init at 0.3.2#42102matthewbauer merged 2 commits intoNixOS:masterfrom dje4321:brightnessctl
Conversation
|
probably isnt perfect but ill appreciate the feedback on ways to improve it. First time making a package for nixos and first time making a PR. @grahamc thanks for the help earlier. I know what i did wrong. checked out the local nixpkg version for my system instead of doing it for master. its what i get for following the manual to close but not close enough |
pkgs/misc/brightnessctl/default.nix
Outdated
| substituteInPlace 90-brightnessctl.rules --replace %k '*' | ||
| ''; | ||
|
|
||
| installPhase = '' |
There was a problem hiding this comment.
We should be able to reuse the install from the Makefile with makeFlags = "PREFIX=/ DESTDIR=$(out)";. This is a little bit better practice especially for when renames, new files, etc are introduced.
|
|
||
| meta = { | ||
| homepage = "https://github.com/Hummer12007/brightnessctl"; | ||
| license = stdenv.lib.licenses.mit; |
There was a problem hiding this comment.
Could you add yourself as a maintainer here?
There was a problem hiding this comment.
Thanks for the feedback. Ill work on getting them implemented.
pkgs/misc/brightnessctl/default.nix
Outdated
| name = "brightnessctl-${version}"; | ||
| version = "0.3.2"; | ||
|
|
||
| src = fetchurl { |
There was a problem hiding this comment.
You may want to use fetchFromGitHub here. IMO it makes things more readable.
dje4321
left a comment
There was a problem hiding this comment.
Changes Submitted
|
The executable under bin doesn't have executable permission. |
|
and the udev rules appear to be missing from |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/new-package-that-manipulates-udev/6391/2 |
Motivation for this change
Adding brightnessctl for better backlight support. brightnessctl package is what provides the binary and the brightnessctl module enables the udev rule for access from userspace for anyone in the video group.
Things done
sandboxinnix.confon non-NixOS)./result/bin/)nix-shell -p nox --run "nox-review wip"