blob: 9fe6466866dfa6e3c1f193f3642870c87dbf92bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#! /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";
|