forked from lix-project/hydra
* Call computeFSClosure() directly.
This commit is contained in:
parent
934fbc868f
commit
b9c1f9aca7
|
@ -3,6 +3,7 @@ package Hydra::View::NixManifest;
|
||||||
use strict;
|
use strict;
|
||||||
use base qw/Catalyst::View/;
|
use base qw/Catalyst::View/;
|
||||||
use Hydra::Helper::Nix;
|
use Hydra::Helper::Nix;
|
||||||
|
use Nix;
|
||||||
|
|
||||||
|
|
||||||
sub process {
|
sub process {
|
||||||
|
@ -12,8 +13,7 @@ sub process {
|
||||||
|
|
||||||
$c->response->content_type('text/x-nix-manifest');
|
$c->response->content_type('text/x-nix-manifest');
|
||||||
|
|
||||||
my @paths = split '\n', `nix-store --query --requisites --include-outputs @storePaths`;
|
my @paths = Nix::computeFSClosure(0, 1, @storePaths);
|
||||||
die "cannot query dependencies of path(s) @storePaths: $?" if $? != 0;
|
|
||||||
|
|
||||||
my $manifest =
|
my $manifest =
|
||||||
"version {\n" .
|
"version {\n" .
|
||||||
|
|
Loading…
Reference in a new issue