[Nix-dev] Generating desktop files
Eelco Dolstra
e.dolstra at tudelft.nl
Tue May 12 12:43:45 CEST 2009
Hi,
Nicolas Pierron wrote:
> On Tue, May 12, 2009 at 09:48, Eelco Dolstra <e.dolstra at tudelft.nl> wrote:
>> Sander van der Burg - EWI wrote:
>>
>>> I just created a makeDesktopItem function in Nixpkgs, which you can use
>>> to generate .desktop files for applications that do not include .desktop
>>> files in their tarballs, such as Mozilla Firefox.
>> Maybe it would be nice to have this as a shell function that can be called from
>> postInstall hooks. That way we wouldn't have to create a wrapper package for
>> everything.
>
> Adding a function inside setup.sh implies that you will have to
> recompile every package each time you add a support to a new standard.
I wasn't proposing adding it to setup.sh. Using makeSetupHook you can just add
extensions in buildInputs - see makeWrapper as an example.
> stdenv.mkDerivation {
> name = "foo-1.2.3";
>
> extraSetup = mkDesktopItem;
This is basically what makeSetupHook accomplishes. It creates a trivial package
containing a setup-hook.sh which gets sourced by setup.sh.
--
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
More information about the nix-dev
mailing list