Re: [Nix-dev] Simplify node packages?

2017-04-26 Thread Colin Putney
On Tue, Apr 25, 2017 at 3:21 AM, Sander van der Burg wrote: Now yarn (and other approaches such as ied) do obviously a much better job > than NPM in some aspects. Unfortunately, as of today, NPM remains the > de-facto standard for Node.js package deployment, and I'm not

Re: [Nix-dev] Simplify node packages?

2017-04-26 Thread Colin Putney
On Tue, Apr 25, 2017 at 12:51 AM, Profpatsch wrote: > yarn is really just a 1:1 rewrite of node with lockfiles. > I don’t know why people celebrate it so much, > because it does exactly nothing differently apart from > creating the lockfiles. > Don’t even know why a rewrite

Re: [Nix-dev] Simplify node packages?

2017-04-24 Thread Colin Putney
On Sun, Apr 23, 2017 at 6:10 AM, Benno Fünfstück < benno.fuenfstu...@gmail.com> wrote: > * Alternatively, `yarn` claims to be more deterministic. Can we use `yarn` > to build all NPM packages? Or are there NPM packages that are incompatible? > I think this is the best way forward. Yarn is

Re: [Nix-dev] Announcing: NixOS Security Team, and Request for Comments

2017-01-06 Thread Colin Putney
On Fri, Jan 6, 2017 at 11:01 AM, zimbatm wrote: > In relation to GPG key signing, I think it's safe to trust online > identities it they are established trough enough channels. That's basically > what keybase.io is doing, they are a point of contact but the proof of >

Re: [Nix-dev] Usability: Nixpkg > NixOS

2016-12-15 Thread Colin Putney
On Thu, Dec 15, 2016 at 5:03 AM, Mark Gardner wrote: > > ​ > > ​Just like "Go" -> "golang", we can promote "Nix" -> "nixpkg". > Maybe nix-lang? One thing I've noticed is that if nix is promoted as a package manager, people are interested until they run into the fact that they

[Nix-dev] Great news for users of Node on NixOS

2016-10-11 Thread Colin Putney
https://code.facebook.com/posts/1840075619545360 ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] On npm2nix and the NPM package set in Nixpkgs

2016-07-16 Thread Colin Putney
On Thu, Jul 14, 2016 at 4:19 AM, Tomasz Czyż wrote: > Are you sure that having multiple tools/solutions is frustrating? Maybe > it's just lack of description or documentation? > (btw, currently there is only one, Sander is trying to introduce second > "official" one if I

Re: [Nix-dev] hydra and nixos versions/commits at hydra.nixos.org

2016-06-15 Thread Colin Putney
On Wed, Jun 15, 2016 at 3:40 AM, Domen Kožar wrote: > Hydra NixOS module and package are now available on nixpkgs master. > There's one bug I need to fix, then I'll backport these changes to 16.03. > > Meanwhile, I used following commit on 16.03 before I moved to the fork > using

[Nix-dev] [JOB] Fullstack web developer

2016-04-25 Thread Colin Putney
Hi folks, Hope this isn’t off-topic for the list. My company is looking for a mid-level or senior engineer to work on a sophisticated web application. It’s a pretty simple stack - React, Node and Postgres. We package everything with nix and deploy it to NixOS using Nixops. Note that we’re

Re: [Nix-dev] Nixpkgs versioning

2016-03-30 Thread Colin Putney
> On Mar 30, 2016, at 1:55 AM, Jakob Gillich wrote: > > FYI npm also uses @ for this purpose (e.g. npm install foo@1.0). I don't > think I ever had to escape it (?). I don’t know about Guix, but with NPM, version names are much more important than they are with nix. NPM uses

[Nix-dev] IED, an alternate package manager for node

2016-03-22 Thread Colin Putney
Looks interesting, and credits nix as an inspiration: https://github.com/alexanderGugel/ied -Colin ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] yet another npm2nix reengineering attempt

2016-03-01 Thread Colin Putney
On Tue, Mar 1, 2016 at 6:42 AM, Sander van der Burg wrote: > So as you may see: it is all quite annoying and painful. :( > I'm starting to think that it's pointless to try to make it all work automatically. At some point it's so compatible with npm that it replicates all

Re: [Nix-dev] Using nix-shell in messy trees with symlinks and binary files

2016-02-18 Thread Colin Putney
On Mon, Feb 15, 2016 at 11:39 PM, Kosyrev Serge wrote: > Good day, folks! > > What I'm seeing is a rather disturbingly odd, context-depenent behavior of > nix-shell: > > , > | [deepfire@andromedae:~/src/foo]$ nix-shell default.nix > | warning: dumping very large path

Re: [Nix-dev] New NixOS and nixpkgs for SmartOS images released

2016-02-01 Thread Colin Putney
Bravo! Nix and SmartOS are such a natural match. I'm really glad to see this! On Mon, Feb 1, 2016 at 7:18 AM, deCube.net | Danny Wilson wrote: > Hi list! > > Today I’m excited to announce 2 new images available for running nix on > SmartOS: > > > 1) NixOS as lx-branded zone:

Re: [Nix-dev] nix-shell with system pkgs

2016-01-26 Thread Colin Putney
On Mon, Jan 25, 2016 at 3:15 PM, Yacine Hmito wrote: > So, after this lengthy introduction, these are my questions: > > - Is it possible for nix-shell to use pkgs as configured by the system > instead of evaluating ''? Would pointing toward the system's .drv > file >

Re: [Nix-dev] nix-shell with system pkgs

2016-01-26 Thread Colin Putney
On Tue, Jan 26, 2016 at 9:03 AM, yacine.hmito wrote: > Thanks for the answer. > > What I am trying to achieve is using nix-shell from a custom derivation. > Not a specific one (your solution is on point for that) but any derivation > in a set. > > I achieved this as I

Re: [Nix-dev] [RFC] Generating documentation from nixpkgs (markdown files) with pandoc (Was: Real documentation, aka "Let's kill the wiki")

2015-11-19 Thread Colin Putney
On Wed, Nov 18, 2015 at 9:51 AM, Domen Kožar wrote: > I've once experimented and ported nixpkgs manual to > http://static.domenkozar.com/nixpkgs-manual-sphinx-exp/ > Wow, that looks great! This kind of thing is much nicer than the docs currently on the web site. With everything in

Re: [Nix-dev] What is the end game?

2015-08-31 Thread Colin Putney
On Mon, Aug 31, 2015 at 1:26 AM, Peter Simons wrote: > Hi Colin, > > > That seems backwards. The upstream project would then depend on nixpkgs. > > the upstream project depends on Nixpkgs because it most likely needs a > compiler and a libc and some other core utils to build.

Re: [Nix-dev] What is the end game?

2015-08-30 Thread Colin Putney
On Sun, Aug 30, 2015 at 11:09 AM, Peter Simons sim...@cryp.to wrote: Hi Daniel, What if binutils had a release.nix in its repo? How about gcc or clang? What would the expressions look like in nixpkgs? the expressions in Nixpkgs would look exactly like they do today, i.e. they download

Re: [Nix-dev] Some beginner Nix/nixpkgs questions

2015-08-05 Thread Colin Putney
On Wed, Aug 5, 2015 at 4:53 AM, Alex Dean a...@snowplowanalytics.com wrote: On reproducible deployments using git revisions - it solves the problem, but it feels like a very out-of-band solution. You don't have to embed a git revision in your nix expressions; I don't like that solution much

Re: [Nix-dev] Nix-env error

2015-07-27 Thread Colin Putney
On Fri, Jul 24, 2015 at 11:16 PM, James Cook james.c...@utoronto.ca wrote: I can't reproduce this at commit 554cbe9. The only thing that comes to mind is per-user configuration such as ~/.nixpkgs/config.nix, if you're sharing that between your computers. If that's a possibility, I guess you

Re: [Nix-dev] Nix-env error

2015-07-24 Thread Colin Putney
On Fri, Jul 17, 2015 at 3:08 PM, Luca Bruno lethalma...@gmail.com wrote: You have an old nixpkgs. Hmm. As far as I can tell, I've got the latest nixpkgs-unstable. Commit 554cbe9 was created just a few days ago. [dev@sandbox:~]$ echo $NIX_PATH

[Nix-dev] Nix-env error

2015-07-17 Thread Colin Putney
Hi folks, I'm running into an error I can't figure out. # nix-env -i lsof error: attribute ‘interpreterName’ missing, at /root/.nix-defexpr/channels/nixpkgs/pkgs/development/web/nodejs/build-node-package.nix:7:16 I've run into it on a few different machines, and have usually worked around it

Re: [Nix-dev] Git commit hashes

2015-06-02 Thread Colin Putney
On Tue, Jun 2, 2015 at 9:33 AM, Vladimír Čunát vcu...@gmail.com wrote: Hi. On 06/02/2015 06:15 PM, Colin Putney wrote: I'm running a small cluster with several custom-built services, and I'd like to include git commit hashes in my logs so that I can easily find the source code that's

Re: [Nix-dev] Git commit hashes

2015-06-02 Thread Colin Putney
On Tue, Jun 2, 2015 at 9:36 AM, Tomasz Kontusz tomasz.kont...@gmail.com wrote: You can pass leaveDotGit = true into fetchgit, or pass the commit into the build script as a separate variable. Not using fetchgit, since the nix expressions are part of the code. Passing the commit hash into the

[Nix-dev] Git commit hashes

2015-06-02 Thread Colin Putney
Hi all, I'm running a small cluster with several custom-built services, and I'd like to include git commit hashes in my logs so that I can easily find the source code that's producing them. I thought this would be straight-forward, but it's turning out to be surprisingly difficult. Running `git

Re: [Nix-dev] Git commit hashes

2015-06-02 Thread Colin Putney
On Tue, Jun 2, 2015 at 9:15 AM, Colin Putney co...@wiresong.com wrote: Hi all, I'm running a small cluster with several custom-built services, and I'd like to include git commit hashes in my logs so that I can easily find the source code that's producing them. I thought this would

Re: [Nix-dev] Overriding a node package

2015-03-31 Thread Colin Putney
This happens when you have dependencies in package.json that are not supplied by the dependencies passed to buildNodePackage. The build process involves running npm, which will read the package.json file and attempt to download and install any missing dependencies. That introduces an impurity to

Re: [Nix-dev] State database in nixops

2015-02-22 Thread Colin Putney
On Sat, Feb 21, 2015 at 4:06 PM, Thomas Hunger tehun...@gmail.com wrote: We also have a CI server which deploys for us, but that's not the same server as the common one we use for manual deploys (which are unfortunately necessary on occasion). So we have two copies of the state which has

Re: [Nix-dev] How to get rid of systemd (was: Modifying the init system (introducing S6 supervision suite))

2014-12-29 Thread Colin Putney
On Sun, Dec 28, 2014 at 11:11 PM, Ertugrul Söylemez ert...@gmx.de wrote: Hi Colin, This sounds a lot like Disnix! How would it be similar? How would it be different? Disnix and NixOps are machine-oriented. You have a network of machines with configurations. The goal is a

Re: [Nix-dev] How to get rid of systemd (was: Modifying the init system (introducing S6 supervision suite))

2014-12-28 Thread Colin Putney
On Sun, Dec 28, 2014 at 11:13 AM, Ertugrul Söylemez ert...@gmx.de wrote: Instead a lot of services can be treated as a sequence of isolated containers, and a small set of load-balanced, mutable service entry points. Namespace magic can make a lot of previously global state, local, such

Re: [Nix-dev] [Ann] Sublime Text/TextMate/Atom syntax highlighter

2014-12-06 Thread Colin Putney
On Sun, Nov 30, 2014 at 5:01 PM, Wout Mertens wout.mert...@gmail.com wrote: Hey all, I made a highlighter for Sublime Text, which uses the TextMate format. Atom also seems to use it, as does github. This works nicely. Thanks! ___ nix-dev mailing

[Nix-dev] Nixops errors

2014-11-20 Thread Colin Putney
Hi folks, I'm wrestling with a problem that's causing my Nixops deployments to fail. I'm getting a lot of messages on the console that look like this: terminate called after throwing an instance of 'nix::Error' error: unexpected end-of-file The number of ssh connections to the target machine

[Nix-dev] SF meetup?

2014-11-05 Thread Colin Putney
Hi, Is anybody using Nix in San Francisco? If so, I'd love to meet you! Let's get together and compare notes. Colin ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Reengineered npm2nix: call for feedback

2014-10-28 Thread Colin Putney
On Tue, Oct 21, 2014 at 1:17 PM, Sander van der Burg svanderb...@gmail.com wrote: I think the problem with relative paths is solved now. Now the directory in which the package.json file resides is also taking into account in the generation process. I tested it against a simple custom-made

Re: [Nix-dev] Reengineered npm2nix: call for feedback

2014-10-16 Thread Colin Putney
On Tue, Sep 30, 2014 at 3:13 AM, Sander van der Burg svanderb...@gmail.com wrote: I've used the reengineered npm2nix on a private project for the company I work for, as well as some other utilities and it seems to work fine for me. Hopefully, you can also try npm2nix on your projects to find

[Nix-dev] Bower2nix

2014-10-14 Thread Colin Putney
Hi folks, I'm trying to use nix (and nixops) to deploy a web app. It includes some client-side components from bower. I've used bower2nix to generate some nix-expresssions for downloading the bower packages, but I can't quite see how to incorporate them into the derivation for my app. What I'd

Re: [Nix-dev] Anyone care to review my post on the Nix expression language?

2014-10-08 Thread Colin Putney
On Wed, Oct 8, 2014 at 5:00 AM, James Harrison Fisher jameshfis...@gmail.com wrote: Thanks Ellis! If there’s anything you didn’t enjoy, I’d love to know, since I’ll be writing more of these and I want to establish a style that people like. :-) Awesome article. I especially liked the gory

Re: [Nix-dev] Infinite recursion with npm2nix

2014-04-16 Thread Colin Putney
On Tue, Apr 15, 2014 at 8:27 AM, Shea Levy s...@shealevy.com wrote: Hi Colin, I've added pure-0.5.0-rc-1 to nixpkgs, can you try using that as a dependency? Hi Shea, Thanks for looking into this. Unfortunately, I don't think this approach is the right way to go. Pure is a CSS framework;

Re: [Nix-dev] Infinite recursion with npm2nix

2014-04-16 Thread Colin Putney
On Wed, Apr 16, 2014 at 9:33 AM, Shea Levy s...@shealevy.com wrote: Hmm, yes we do, for example nodePackages.by-version.grunt-contrib-cssmin.0.9.0. Are you by any chance using the 13.10 branch of nixpkgs? It's entirely possible the buildNodePackage there doesn't work properly with

[Nix-dev] Nixos.org down

2014-04-15 Thread Colin Putney
Hope this right place to post this. I don't speak German, but it looks like the domain is being blocked, for some reason. *Diese Domain wurde gesperrt...* Falls Sie der Administrator dieser Domain sind und Fragen zur Sperrung Ihrer Domain haben, wenden Sie sich bitte an unser Support-Team

[Nix-dev] Infinite recursion with npm2nix

2014-04-14 Thread Colin Putney
Hi folks, In my on-going quest to package up my node applications, I've run into a noob-trap that has me completely stumped. The app is a web app, so it has both client- and server-side code. One of the dependencies is Yahoo's Pure CSS library. PureCSS, in turn relies on Grunt for its build

Re: [Nix-dev] Maven support in nix

2014-04-07 Thread Colin Putney
On Mon, Apr 7, 2014 at 1:25 AM, Marc Weber marco-owe...@gmx.de wrote: Existing solutions (non Java): - cabal2nix (cabal descriptions to nix) - py2nix (or such) same for python - ruby2nix (or such ) same for ruby -hacknix/nixpkgs-ruby-overlay (they convert hackage/rubyforge to a pool which

[Nix-dev] stripHash

2014-04-07 Thread Colin Putney
Hi all, The Nixpkgs Manual mentions that stdenv provides a shell function, stripHash, that will strip off the directory and hash part of a store path, and print out just the name. (See http://nixos.org/nixpkgs/manual/#fun-stripHash). However, it doesn't actually print anything out. (At least not

Re: [Nix-dev] Nixops on headless server

2014-04-03 Thread Colin Putney
On Wed, Apr 2, 2014 at 6:40 AM, Marco Maggesi magg...@math.unifi.it wrote: Hi, there seems to be again a problem with nixops with virtualbox headless nodes. $ nixops deploy -d minicloud webserver creating VirtualBox VM... webserver Virtual machine

[Nix-dev] Variable data files

2014-04-03 Thread Colin Putney
Hi folks, I'm packaging an app that I'd like to deploy on NixOS, and trying to figure out how to handle data files that the app needs to be able to write to. So here some newbie questions: 1) Is there a standard place for application installed in the nix store to use for variable data? 2) Is

Re: [Nix-dev] NiJS package manager

2014-04-02 Thread Colin Putney
On Tue, Apr 1, 2014 at 4:52 PM, Sander van der Burg - EWI s.vanderb...@tudelft.nl wrote: I have decided to update my blog post with some additional notes based on the discussion: Ugh. I fell for it. I even wondered if it could be a joke and then decided No way! Look at all this code.

Re: [Nix-dev] NiJS package manager

2014-04-01 Thread Colin Putney
On Tue, Apr 1, 2014 at 6:18 AM, Shell Turner cam.t...@gmail.com wrote: http://sandervanderburg.blogspot.com/2014/04/asynchronous-package-management-with.html I have discovered that the Nix expression language is complicated and difficult to learn. Like Haskell, it has a solid theoretical