diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-10T13·41+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-07-10T13·41+0000 |
commit | d072485d2895d01dbbab1d899418726e3349343f (patch) | |
tree | 237c23cdb613d363e9205f89d51cac8433cf3b85 /corepkgs/nar | |
parent | 5d4b90b689b09965be39c69aceddaf0b165598d0 (diff) |
* Get `nix-push' working again. It now uses Nix/Fix to create Nix
archives (using the package in corepkgs/nar). * queryPathByHash -> expandHash, and it takes an argument specifying the target path (which may be empty). * Install the core Fix packages in $prefix/share/fix. TODO: bootstrap Nix and install Nix as a Fix package.
Diffstat (limited to 'corepkgs/nar')
-rw-r--r-- | corepkgs/nar/nar.fix | 8 | ||||
-rw-r--r-- | corepkgs/nar/nar.sh | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/corepkgs/nar/nar.fix b/corepkgs/nar/nar.fix new file mode 100644 index 000000000000..3db6a48a0838 --- /dev/null +++ b/corepkgs/nar/nar.fix @@ -0,0 +1,8 @@ +Function(["path", "name"], + Package( + [ ("name", Var("name")) + , ("build", Relative("nar/nar.sh")) + , ("path", Var("path")) + ] + ) +) \ No newline at end of file diff --git a/corepkgs/nar/nar.sh b/corepkgs/nar/nar.sh new file mode 100644 index 000000000000..6ffcf63224a8 --- /dev/null +++ b/corepkgs/nar/nar.sh @@ -0,0 +1,3 @@ +#! /bin/sh + +/tmp/nix/bin/nix --dump --file "$path" > $out || exit 1 |