diff options
author | Alexander Kjeldaas <ak@formalprivacy.com> | 2014-04-22 13:02:43 +0200 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2014-06-28 20:44:22 -0500 |
commit | 81172a77e6e15f310842a4a5181bbce517b4cb8d (patch) | |
tree | 4a0f1f7a3bb36c3d193b3f5ecd3d9d0cfff38c22 | |
parent | d80ded0e7d3158ff54721eb0e5d29477f7cccebe (diff) | |
download | nixpkgs-81172a77e6e15f310842a4a5181bbce517b4cb8d.tar nixpkgs-81172a77e6e15f310842a4a5181bbce517b4cb8d.tar.gz nixpkgs-81172a77e6e15f310842a4a5181bbce517b4cb8d.tar.bz2 nixpkgs-81172a77e6e15f310842a4a5181bbce517b4cb8d.tar.lz nixpkgs-81172a77e6e15f310842a4a5181bbce517b4cb8d.tar.xz nixpkgs-81172a77e6e15f310842a4a5181bbce517b4cb8d.tar.zst nixpkgs-81172a77e6e15f310842a4a5181bbce517b4cb8d.zip |
Document paths-from-graph.pl somewhat.
-rw-r--r-- | pkgs/build-support/kernel/paths-from-graph.pl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/build-support/kernel/paths-from-graph.pl b/pkgs/build-support/kernel/paths-from-graph.pl index f1866237210..9a199a2b304 100644 --- a/pkgs/build-support/kernel/paths-from-graph.pl +++ b/pkgs/build-support/kernel/paths-from-graph.pl @@ -1,9 +1,27 @@ +# Parses a /nix/store/*-closure file and prints +# various information. +# By default, the nodes in the graph are printed to stdout. +# If the environment variable printManifest is set, +# then the graph is written as a manifest. +# If printRegistration is set, then the graph is written +# as a registration file for a manifest is written +# in the `nix-store --load-db' format. + use strict; use File::Basename; my %storePaths; my %refs; +# Each argument on the command line is a graph file. +# The graph file contains line-triples and a variable +# number of references: +# <store-path> +# <deriver> +# <count> +# <ref-#1> +# ... +# <ref-#count> foreach my $graph (@ARGV) { open GRAPH, "<$graph" or die; |