[prev in list] [next in list] [prev in thread] [next in thread]
List: nix-dev
Subject: Re: [nix-devel] Want to use newer pandoc, I should use an overlay right?
From: Cody Goodman <codygman.consulting () gmail ! com>
Date: 2018-02-25 0:20:29
Message-ID: CADq_+R3r1aUzWKr2zzUBsU=ePdwkmKsU1iz-1=LjbHRfQ+GBdw () mail ! gmail ! com
[Download RAW message or body]
Thank you Markus! That was *much* simpler than I thought. I had a previous
bad experience trying to create an overlay for the new firefox and then
with trying to get this one to work:
https://github.com/mozilla/nixpkgs-mozilla
On Sat, Feb 24, 2018 at 2:42 AM, Markus <markus1189@gmail.com> wrote:
> Hi Cody,
>
> you can define your overlay like this, either in a file and import it or
> verbatim in your NixOS config:
>
> let
> pkgsMaster = import (fetchTarball https://github.com/NixOS/
> nixpkgs/archive/master.tar.gz) {};
> in self: super: {
> pandoc = pkgsMaster.pandoc;
> }
>
> This uses the latest master to get the package, but of course you could
> also pin it to any specific version.
>
> Use this by adding it to the nixpkgs.overlays attribute, pass it in to any
> import <nixpkgs> { overlays = ... } or somewhere in the nixpkgs-overlays
> NIX_PATH entry
>
> Best,
> Markus
>
>
>
> On Sat, Feb 24, 2018 at 8:43 AM, Cody Goodman <
> codygman.consulting@gmail.com> wrote:
>
> > Hi Lassulus, thank you for your help.
> >
> > I'm actually wanting my system wide pandoc to be updated. Can you help
> > with that?
> >
> > Thanks,
> >
> > Cody
> >
> > On Sat, Feb 17, 2018 at 7:05 PM, <lassulus@lassul.us> wrote:
> >
> > > On Sat, Feb 17, 2018 at 10:45:46AM +0000, Cody Goodman wrote:
> > > > Hi all,
> > > >
> > > > I'm trying to use nixos again, but I've run into an annoyance where
> > > an
> > > > older verison of pandoc is used.
> > > >
> > > > I think that I need to use an overlay to update the version to 2.x,
> > > but
> > > > I'm not sure how to do it.
> > > >
> > > > Could someone show me how that would be done?
> > > >
> > >
> > > in a shell.nix:
> > >
> > > { pkgs ? import <nixpkgs> { } }: let
> > >
> > > myPkgs = import (pkgs.fetchFromGitHub {
> > > owner = "nixos";
> > > repo = "nixpkgs";
> > > rev = "f607771";
> > > sha256 = "1icphqpdcl8akqhfij2pxkfr7wfn86z5sr3jdjh88p9vv1550dx7";
> > > }) {};
> > >
> > > in pkgs.stdenv.mkDerivation {
> > > name = "pandoc";
> > > buildInputs = [
> > > myPkgs.pandoc
> > > ];
> > > }
> > >
> > > --
> > > You received this message because you are subscribed to a topic in the
> > > Google Groups "nix-devel" group.
> > > To unsubscribe from this topic, visit https://groups.google.com/d/to
> > > pic/nix-devel/w9Ewk4zWHAo/unsubscribe.
> > > To unsubscribe from this group and all its topics, send an email to
> > > nix-devel+unsubscribe@googlegroups.com.
> > > To post to this group, send email to nix-devel@googlegroups.com.
> > > To view this discussion on the web visit https://groups.google.com/d/ms
> > > gid/nix-devel/20180218010508.iq7hyszyyqs6aaf3%40mors.r.
> > > For more options, visit https://groups.google.com/d/optout.
> > >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "nix-devel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to nix-devel+unsubscribe@googlegroups.com.
> > To post to this group, send email to nix-devel@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/ms
> > gid/nix-devel/CADq_%2BR2LBdB8VYKi4rjoRsM%2BPjnNhvqUh%3DGDqi1
> > ByU3udvDBLw%40mail.gmail.com
> > <https://groups.google.com/d/msgid/nix-devel/CADq_%2BR2LBdB8VYKi4rjoRsM%2BPjnNhvqUh%3DGDqi1ByU3udvDBLw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> >
> > .
> >
> > For more options, visit https://groups.google.com/d/optout.
> >
>
>
--
You received this message because you are subscribed to the Google Groups "nix-devel" \
group. To unsubscribe from this group and stop receiving emails from it, send an \
email to nix-devel+unsubscribe@googlegroups.com. To post to this group, send email to \
nix-devel@googlegroups.com. To view this discussion on the web visit \
https://groups.google.com/d/msgid/nix-devel/CADq_%2BR3r1aUzWKr2zzUBsU%3DePdwkmKsU1iz-1%3DLjbHRfQ%2BGBdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
[Attachment #3 (text/html)]
<div dir="ltr">Thank you Markus! That was *much* simpler than I thought. I had a
previous bad experience trying to create an overlay for the new firefox
and then with trying to get this one to work:<br><br><a \
href="https://github.com/mozilla/nixpkgs-mozilla" \
target="_blank">https://github.com/mozilla/<wbr>nixpkgs-mozilla</a><div \
class="gmail-yj6qo gmail-ajU"><div id="gmail-:32a" class="gmail-ajR" \
tabindex="0"><img class="gmail-ajT" \
src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><br></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 24, 2018 at 2:42 AM, \
Markus <span dir="ltr"><<a href="mailto:markus1189@gmail.com" \
target="_blank">markus1189@gmail.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" \
style="font-family:courier new,monospace">Hi Cody,</div><div class="gmail_default" \
style="font-family:courier new,monospace"><br></div><div class="gmail_default" \
style="font-family:courier new,monospace">you can define your overlay like this, \
either in a file and import it or verbatim in your NixOS config:<br></div><div \
class="gmail_default" style="font-family:courier new,monospace"><br></div><div \
style="font-family:courier new,monospace" class="gmail_default">let<br> \
pkgsMaster = import (fetchTarball <a \
href="https://github.com/NixOS/nixpkgs/archive/master.tar.gz" \
target="_blank">https://github.com/NixOS/<wbr>nixpkgs/archive/master.tar.gz</a>) \
{};<br>in self: super: {<br> pandoc = pkgsMaster.pandoc;<br>}</div><div \
style="font-family:courier new,monospace" class="gmail_default"><br></div><div \
style="font-family:courier new,monospace" class="gmail_default">This uses the latest \
master to get the package, but of course you could also pin it to any specific \
version.<br></div><div style="font-family:courier new,monospace" \
class="gmail_default"><br></div><div style="font-family:courier new,monospace" \
class="gmail_default">Use this by adding it to the nixpkgs.overlays attribute, pass \
it in to any import <nixpkgs> { overlays = ... } or somewhere in the \
nixpkgs-overlays NIX_PATH entry</div><div style="font-family:courier new,monospace" \
class="gmail_default"><br></div><div style="font-family:courier new,monospace" \
class="gmail_default">Best,</div><div style="font-family:courier new,monospace" \
class="gmail_default">Markus<br></div><br><div class="gmail_default" \
style="font-family:courier new,monospace"><br></div></div><div \
class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Feb 24, \
2018 at 8:43 AM, Cody Goodman <span dir="ltr"><<a \
href="mailto:codygman.consulting@gmail.com" \
target="_blank">codygman.consulting@gmail.com</a><wbr>></span> \
wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div \
dir="ltr"><div><div><div>Hi Lassulus, thank you for your help.<br><br></div>I'm \
actually wanting my system wide pandoc to be updated. Can you help with \
that?<br><br></div>Thanks,<br><br></div>Cody<br></div><div \
class="gmail_extra"><br><div class="gmail_quote"><span>On Sat, Feb 17, 2018 at 7:05 \
PM, <span dir="ltr"><<a href="mailto:lassulus@lassul.us" \
target="_blank">lassulus@lassul.us</a>></span> wrote:<br></span><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span>On Sat, Feb 17, 2018 at 10:45:46AM +0000, Cody Goodman \
wrote:<br> > Hi all,<br>
><br>
> I'm trying to use nixos again, but I've run into an annoyance where \
an<br> > older verison of pandoc is used.<br>
><br>
> I think that I need to use an overlay to update the version to 2.x, but<br>
> I'm not sure how to do it.<br>
><br>
> Could someone show me how that would be done?<br>
><br>
<br>
in a shell.nix:<br>
<br>
{ pkgs ? import <nixpkgs> { } }: let<br>
<br>
myPkgs = import (pkgs.fetchFromGitHub {<br>
owner = "nixos";<br>
repo = "nixpkgs";<br>
rev = "f607771";<br>
sha256 = "1icphqpdcl8akqhfij2pxkfr7wfn8<wbr>6z5sr3jdjh88p9vv1550dx7";<br>
}) {};<br>
<br>
in pkgs.stdenv.mkDerivation {<br>
name = "pandoc";<br>
buildInputs = [<br>
myPkgs.pandoc<br>
];<br>
}<br>
</span><span class="m_-6988192139665526879m_7040175051381662125HOEnZb"><font \
color="#888888"><br>
--<br>
You received this message because you are subscribed to a topic in the Google Groups \
"nix-devel" group.<br> To unsubscribe from this topic, visit <a \
href="https://groups.google.com/d/topic/nix-devel/w9Ewk4zWHAo/unsubscribe" \
rel="noreferrer" target="_blank">https://groups.google.com/d/to<wbr>pic/nix-devel/w9Ewk4zWHAo/unsu<wbr>bscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a \
href="mailto:nix-devel%2Bunsubscribe@googlegroups.com" \
target="_blank">nix-devel+unsubscribe@googlegr<wbr>oups.com</a>.<span><br> To post to \
this group, send email to <a href="mailto:nix-devel@googlegroups.com" \
target="_blank">nix-devel@googlegroups.com</a>.<br> To view this discussion on the \
web visit <a href="https://groups.google.com/d/msgid/nix-devel/20180218010508.iq7hyszyyqs6aaf3%40mors.r" \
rel="noreferrer" target="_blank">https://groups.google.com/d/ms<wbr>gid/nix-devel/20180218010508.i<wbr>q7hyszyyqs6aaf3%40mors.r</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" \
rel="noreferrer" target="_blank">https://groups.google.com/d/op<wbr>tout</a>.<br> \
</span></font></span></blockquote></div><br></div></div></div><span>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups \
"nix-devel" group.<br> To unsubscribe from this group and stop receiving \
emails from it, send an email to <a \
href="mailto:nix-devel+unsubscribe@googlegroups.com" \
target="_blank">nix-devel+unsubscribe@googlegr<wbr>oups.com</a>.<span class=""><br> \
To post to this group, send email to <a href="mailto:nix-devel@googlegroups.com" \
target="_blank">nix-devel@googlegroups.com</a>.<br></span></span> To view this \
discussion on the web visit <a \
href="https://groups.google.com/d/msgid/nix-devel/CADq_%2BR2LBdB8VYKi4rjoRsM%2BPjnNhvqUh%3DGDqi1ByU3udvDBLw%40mail.gmail.com?utm_medium=email&utm_source=footer" \
target="_blank">https://groups.google.com/d/ms<wbr>gid/nix-devel/CADq_%2BR2LBdB8V<wbr>YKi4rjoRsM%2BPjnNhvqUh%3DGDqi1<wbr>ByU3udvDBLw%40mail.gmail.com</a>.<span \
class=""><div class="m_-6988192139665526879HOEnZb"><div \
class="m_-6988192139665526879h5"><br> For more options, visit <a \
href="https://groups.google.com/d/optout" \
target="_blank">https://groups.google.com/d/op<wbr>tout</a>.<br> \
</div></div></span></blockquote></div><br></div> </blockquote></div><br></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups \
"nix-devel" group.<br /> To unsubscribe from this group and stop receiving \
emails from it, send an email to <a \
href="mailto:nix-devel+unsubscribe@googlegroups.com">nix-devel+unsubscribe@googlegroups.com</a>.<br \
/> To post to this group, send email to <a \
href="mailto:nix-devel@googlegroups.com">nix-devel@googlegroups.com</a>.<br /> To \
view this discussion on the web visit <a \
href="https://groups.google.com/d/msgid/nix-devel/CADq_%2BR3r1aUzWKr2zzUBsU%3DePdwkmKs \
U1iz-1%3DLjbHRfQ%2BGBdw%40mail.gmail.com?utm_medium=email&utm_source=footer">https://g \
roups.google.com/d/msgid/nix-devel/CADq_%2BR3r1aUzWKr2zzUBsU%3DePdwkmKsU1iz-1%3DLjbHRfQ%2BGBdw%40mail.gmail.com</a>.<br \
/> For more options, visit <a \
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br \
/>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic