Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nora Puchreiner
Nix
Commits
4ea742c3
Commit
4ea742c3
authored
8 years ago
by
Eelco Dolstra
Browse files
Options
Downloads
Patches
Plain Diff
Remove nar.nix
This was only used by nix-push.
parent
0edc84a8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corepkgs/local.mk
+1
-1
1 addition, 1 deletion
corepkgs/local.mk
corepkgs/nar.nix
+0
-48
0 additions, 48 deletions
corepkgs/nar.nix
with
1 addition
and
49 deletions
corepkgs/local.mk
+
1
−
1
View file @
4ea742c3
corepkgs_FILES
=
nar.nix
buildenv.nix unpack-channel.nix derivation.nix fetchurl.nix imported-drv-to-derivation.nix
corepkgs_FILES
=
buildenv.nix unpack-channel.nix derivation.nix fetchurl.nix imported-drv-to-derivation.nix
$(
foreach
file,config.nix
$(
corepkgs_FILES
)
,
$(
eval
$(
call install-data-in,
$(
d
)
/
$(
file
)
,
$(
datadir
)
/nix/corepkgs
)))
...
...
This diff is collapsed.
Click to expand it.
corepkgs/nar.nix
deleted
100644 → 0
+
0
−
48
View file @
0edc84a8
with
import
<
nix/config.nix
>
;
let
builder
=
builtins
.
toFile
"nar.sh"
''
export PATH=
${
nixBinDir
}
:
${
coreutils
}
if [ $compressionType = xz ]; then
ext=.xz
compressor="|
${
xz
}
-7"
elif [ $compressionType = bzip2 ]; then
ext=.bz2
compressor="|
${
bzip2
}
"
else
ext=
compressor=
fi
echo "packing ‘$storePath’..."
mkdir $out
dst=$out/tmp.nar$ext
set -o pipefail
eval "nix-store --dump \"$storePath\" $compressor > $dst"
hash=$(nix-hash --flat --type $hashAlgo --base32 $dst)
echo -n $hash > $out/nar-compressed-hash
mv $dst $out/$hash.nar$ext
''
;
in
{
storePath
,
hashAlgo
,
compressionType
}:
derivation
{
name
=
"nar"
;
system
=
builtins
.
currentSystem
;
builder
=
shell
;
args
=
[
"-e"
builder
];
inherit
storePath
hashAlgo
compressionType
;
# Remote machines may not have ${nixBinDir} or ${coreutils} in the same prefixes
preferLocalBuild
=
true
;
inherit
chrootDeps
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment