Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

updated at

AOJ day 15: Upgrade from Bower to Psc-Package2Nix

Even though nobody needs to suffer installing their project dependencies with Bower anymore, we still have some people with projects started in Bower from the past couple of years who might not have changed. Worse, sometimes we have users who have a project started with Bower, not knowing that they have much better options to work with.

A long time ago, I wrote about how to upgrade from Bower to Psc-Package: https://qiita.com/kimagure/items/0d9354900d7a7dbd3864

And while this is enough to work with our projects in a pretty modern way, Psc-Package itself is a very simple tool that doesn't try to introduce much. If we want a robust way to verify the contents of dependencies we pull down and store them to be shared between multiple installations, we're going to have to come up with good ways to do this.

"Upgrade from Bower to Nix with Psc-Package2Nix"

In this article, I wrote about how to upgrade a project using Bower to Nix via Psc-Package2Nix:

With this, we can use a simple psc-package.json file to specify the package set definitions and direct dependencies just like with regular Psc-Package usage, but then we can use Psc-Package2Nix to get a set of derivations we can use to install our dependencies.

Register as a new user and use Qiita more conveniently

  1. You can follow users and tags
  2. you can stock useful information
  3. You can make editorial suggestions for articles
What you can do with signing up
Help us understand the problem. What are the problem?