0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Advent of JustinAdvent Calendar 2018

Day 15

AOJ day 15: Upgrade from Bower to Psc-Package2Nix

Last updated at Posted at 2018-12-14

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:

https://qiita.com/kimagure/items/aec640d0047d08d2ce90

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.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?