Skip to content
Snippets Groups Projects
  1. Aug 26, 2016
  2. Aug 24, 2016
    • Eelco Dolstra's avatar
      Fix queryPathFromHashPart() · a9d4f2b3
      Eelco Dolstra authored
      The inner lambda was returning a SQLite-internal char * rather than a
      std::string, leading to Hydra errors liks
      
        Caught exception in Hydra::Controller::Root->narinfo "path ‘ø˜£â€™ is not in the Nix store at /nix/store/6mvvyb8fgwj23miyal5mdr8ik4ixk15w-hydra-0.1.1234.abcdef/libexec/hydra/lib/Hydra/Controller/Root.pm line 352."
      a9d4f2b3
  3. Aug 23, 2016
    • Eelco Dolstra's avatar
      nix build: Use Nix search path · d74236d1
      Eelco Dolstra authored
      That is, unless --file is specified, the Nix search path is
      synthesized into an attribute set. Thus you can say
      
        $ nix build nixpkgs.hello
      
      assuming $NIX_PATH contains an entry of the form "nixpkgs=...". This
      is more verbose than
      
        $ nix build hello
      
      but is less ambiguous.
      d74236d1
  4. Aug 17, 2016
    • Eelco Dolstra's avatar
      Add a mechanism for derivation attributes to reference the derivation's outputs · 22d6e31f
      Eelco Dolstra authored
      For example, you can now say:
      
        configureFlags = "--prefix=${placeholder "out"} --includedir=${placeholder "dev"}";
      
      The strings returned by the ‘placeholder’ builtin are replaced at
      build time by the actual store paths corresponding to the specified
      outputs.
      
      Previously, you had to work around the inability to self-reference by doing stuff like:
      
        preConfigure = ''
          configureFlags+=" --prefix $out --includedir=$dev"
        '';
      
      or rely on ad-hoc variable interpolation semantics in Autoconf or Make
      (e.g. --prefix=\$(out)), which doesn't always work.
      22d6e31f
  5. Aug 16, 2016
  6. Aug 15, 2016
  7. Aug 12, 2016
  8. Aug 11, 2016
  9. Aug 10, 2016
  10. Aug 04, 2016
    • Aneesh Agrawal's avatar
      Dockerfile: Add alpine dependencies (#1011) · c8608c48
      Aneesh Agrawal authored
      * Dockerfile: add GNU tar native dependency
      
      `builtins.fetchTarball` requires GNU tar to be available in the $PATH in
      order to unpack the fetched tarball (there is a FIXME comment for this),
      which Alpine does not ship by default (it ships BusyBox tar).
      
      * Dockerfile: add GNU bash native dependency
      
      `nix-shell` defaults to invoking `bash` from the $PATH for the subshell.
      In theory this can be overriden with the NIX_BUILD_SHELL environment
      variable, but this does not work properly. `nix-shell` generates and
      passes a script (`$rcFile`) to be executed by the subshell which uses
      bashisms (`source` and `shopt`). Additionally, in interactive mode,
      `nix-shell` passes the `--rcfile` argument to the shell, which is
      another bashism.
      
      Because `bash` is thus de-facto required, add `bash` as a native package
      dependency to make it available for `nix-shell`.
      c8608c48
  11. Jul 29, 2016
    • Alexey Shmalko's avatar
      Set $MANPATH (#1005) · eef75481
      Alexey Shmalko authored
      Currently, man has issues finding man pages for Nix-installed
      application (also, `nix-env --help` doesn't work). The issue is caused
      by custom `$MANPATH` set by my system. That makes man use it instead of
      searching in default location.
      
      Either of next lines workaround the issue:
      ```sh
      unset MANPATH
      
      export MANPATH=$HOME/.nix-profile/share/man:$MANPATH
      ```
      
      This patch adds the later line to the `nix-profile.sh` if user has
      `MANPATH` set. (Not clearing `MANPATH` as that would be disrespect of
      user's preferences.)
      
      As a side-effect, host's man might find man pages installed by Nix.
      eef75481
  12. Jul 26, 2016
  13. Jul 24, 2016
  14. Jul 23, 2016
  15. Jul 21, 2016
Loading