Coder Social home page Coder Social logo

spacemacs's People

Watchers

 avatar  avatar

spacemacs's Issues

rotaerk log freenode

trcc
I am trying to add a haskell package to shell.nix, but I can simply not figure out how. Should I use nix-env -f "" -iA haskellPackages.Allure?
trcc
This seems to add it more globally, which I am not interested in
jluttine has left IRC (Ping timeout: 260 seconds)
Aexoden has joined ([email protected])
Sonarpulse has left IRC (Ping timeout: 264 seconds)
init_6 has joined (~init_6@unaffiliated/init-6/x-6600008)
seafood has joined (~[email protected])
jluttine has joined ([email protected])
dhess has joined (~dhess@2001:19f0:ac01:d05:5400:1ff:fe49:977b)
dhess
Anyone around who's running bird on NixOS?
infinisil
trcc: gist your shell.nix?
trcc
infinisil: Think I just solved it
trcc
ls
{^^}
[nixpkgs] @reardencode opened pull request #43269 → Add libudev, which Ledger Live app requires → https://git.io/fNUec
ericsagnes has left IRC (Ping timeout: 244 seconds)
pie
__
how do i sed up rsync on a nixos machine so that i can rsync over ssh?
rprije
For some reason my nix-shell isn't showing me a different prompt. I've set my own bash prompt_command so that probably broke it. What environment variables can I key off to build an explicitly different prompt when in nix-shell?
init_6 has left IRC ()
logzet has left IRC (Remote host closed the connection)
clever
IN_NIX_SHELL=impure
rprije
thanks!
jackdk has joined (98537540@gateway/web/cgi-irc/kiwiirc.com/ip.152.83.117.64)
rotaerk
bisecting nixpkgs, so tiresome
srk
how come
pie___ has left IRC (Ping timeout: 264 seconds)
rotaerk
because I end up needing to test nixpkgs commits that aren't fully in the binary cache
trcc
What is the purpose of running things inside the nix-shell instead of the terminal (using on mac)?
rotaerk
so I end up building GHC or GCC from scratch
rotaerk
trcc, nix-shell sets up your environment as specified in your shell.nix
rotaerk
for instance, you can set it up such that all your development tools are available within it
rotaerk
and all the libraries you depend on are available
tadni_ has left IRC (Ping timeout: 240 seconds)
trcc
rotaerk: thank you. Howeer, within the shell I am invoking cabal build. And this seems to use the regular cabal. I do not even have to add e.g. a haskell module to the shell.nix file
trcc
it is enough to have it in the cabal file
clever
rotaerk: i once did a bisect like that, and ran into all kinds of trouble
trcc
is that because it is using a general envrionment?
clever
rotaerk: it turns out, anything not in the cache worked, and anything in the cache failed, so the bisect just failed to locate the problem entirely
rotaerk
hah
{^_^}
[nixpkgs] @NeQuissimus pushed to master « linux: 4.18-rc3 -> 4.18-rc4 »: https://git.io/fNUvd
clever
rotaerk: the problem was that the nix sandbox broke the package, and i had the sandbox off at the time
rotaerk
nice
clever
the package was testing for things like /etc/mtab, to detect what your distro is doing
clever
the nix sandbox had none of the options
tmaekawa has joined (~[email protected])
clever
so it hard-coded itself to open the path "unknown" at runtime
rotaerk
fortunately, I don't think I'm in a situation like that
rotaerk
I just get impatient waiting for each build
rotaerk
trcc, well, if you have cabal installed in your general environment, it will be accessible to nix-shell (well, by default; I think there's a way to hide it?)
rotaerk
but if you want a reproducible development environment that doesn't depend on what you have installed globally...
rotaerk
nix-shell is useful for that
rotaerk
heck you can have different nix-shell environments side-by-side, each with different versions of cabal accessible to tthem
tmaekawa has left IRC (Client Quit)
trcc
I am mainly interested in the a reproducable environment for the haskell packages. Not so much cabal
rotaerk
trcc, you mean, you want an environment in which a particular set of haskell packages, of specific versions, are accessible for building with cabal?
trcc
yes
rotaerk
yep, that's something you can setup with nix-shell
rotaerk
that's what I'm doing
trcc
do you have any repo publicly available?
rotaerk
I do, but it's not implemented in the simplest possible way, so might not be the best to learn from
rotaerk
but I'll link it...
trcc
the official docs just presents a general environment, that adds cabal and ghc to user profile (https://nixos.org/nixpkgs/manual/#how-to-create-a-development-environment)
rotaerk
https://github.com/rotaerk/vulkanTest
sk8forether has left IRC (Quit: Connection closed for inactivity)
jtojnar has joined (~[email protected])
rotaerk
let me know if you have any questions about it
mroutis has left IRC (Ping timeout: 268 seconds)
trcc
Thank you rotaerk.
trcc
I probably will later on
trcc
What is the process of creating a new project? Cause now I did cabal init, and then created shell.nix from cabal init. But this leaves me with a global cabal and global packages
rotaerk
"created shell.nix from cabal init"? how
trcc
cabal2nix
mroutis has joined ([email protected])
trcc
the cabal file genereated from cabal init
rotaerk
oh k
trcc
But this seems to be the wrong way around
rotaerk
well, all of my nix files were written manually. cabal2nix is something that I call dynamically from within them
rotaerk
rather than storing the cabal2nix result itself in my source
rotaerk
https://github.com/Rotaerk/vulkanTest/blob/master/vulkanTest.nix#L40
rotaerk
there
trcc
ahh
trcc
where do you specify your cabal version?
rotaerk
note that the main folder contains nothing nix-related; it's just a haskell project
rotaerk
well, the general approach I take is to pick a version of nixpkgs as a foundation and reference that specific version (as opposed to using , which relies on whatever version I happen to have installed)
rotaerk
and then I apply overrides on top of that
02:27 rotaerk
i don't currently override the cabal version, so I'm using whatever version comes with this version of nixpkgs
trcc
okay. Thank you. I am trying to set up my project using nix for the frist time. So the development environment is being set up.. takes a bit of time
rotaerk
it's got a learning curve

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.