[BRLTTY] BRLTTY Nix package

Bram Duvigneau bram at bramd.nl
Thu May 7 08:27:12 EDT 2015


On 5/7/2015 12:30 AM, Didier Spaier wrote:
>
>
> On 07/05/2015 00:19, Bram Duvigneau wrote:
>> Mario Lang schreef op 7-5-2015 om 00:11:
>>> Bram Duvigneau <bram at bramd.nl> writes:
>>>
>>>> to give the package a try, it should be available in the NixOS
>>>> unstable
>>>> channel and will be included in the next stable release.
>>> Mind sharing the git repo and relevant paths?  I'd like to look at the
>>> package definition.
>>>
>> Of course, any feedback is welcome.
>>
>> Package definition:
>> https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/brltty/default.nix
>>
>>
>> NixOS module/service definition:
>> https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/hardware/brltty.nix
>>
>
> How would that work (especially the module/service definition) on a
> system that doesn't ship systemd? I have Slackware in mind.
The service module is specifically for NixOS, which is using systemd. If
you would use just Nix on another platform to install packages, you
would have to either start BRLTTY manually or write your own
init/wrapper script. The Nix definitions allow for conditionals for
specific platforms, see the ALSA flag in BRLTTy for an example. So you
might be able to do something with that. That being said, I only have
used NixOS so far and don't know much of Nix on other platforms.
Furthermore, it does not integrate with native package managers of other
platforms, but keeps a separate package tree, si it's not meant to
generate native packages if that was your understanding.

I'm currently using NixOS for a development machine where I can easily
build different development configurations and dependencies for various
projects.

Bram


More information about the BRLTTY mailing list