blob: 9fe6466866dfa6e3c1f193f3642870c87dbf92bb (
plain) (
tree)
|
|
#! /usr/bin/perl -w
use strict;
my $pkglist = "/home/eelco/.nixactivations";
if (!-f $pkglist) {
system "touch $pkglist";
}
my $hash;
foreach $hash (@ARGV) {
system "grep -q $hash $pkglist";
if ($?) {
print STDERR "activating $hash\n";
system "nix getpkg $hash > /dev/null";
if ($?) { die "`nix getpkg' failed"; }
system "echo $hash >> $pkglist";
}
}
system "nix-populate";
|