From b9c1f9aca740ced519e7e82a3c8067a208855b65 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 4 Mar 2010 14:15:13 +0000 Subject: [PATCH] * Call computeFSClosure() directly. --- src/lib/Hydra/View/NixManifest.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Hydra/View/NixManifest.pm b/src/lib/Hydra/View/NixManifest.pm index e040604e..b14ee36f 100644 --- a/src/lib/Hydra/View/NixManifest.pm +++ b/src/lib/Hydra/View/NixManifest.pm @@ -3,6 +3,7 @@ package Hydra::View::NixManifest; use strict; use base qw/Catalyst::View/; use Hydra::Helper::Nix; +use Nix; sub process { @@ -12,8 +13,7 @@ sub process { $c->response->content_type('text/x-nix-manifest'); - my @paths = split '\n', `nix-store --query --requisites --include-outputs @storePaths`; - die "cannot query dependencies of path(s) @storePaths: $?" if $? != 0; + my @paths = Nix::computeFSClosure(0, 1, @storePaths); my $manifest = "version {\n" .