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
afa7e018
Commit
afa7e018
authored
12 years ago
by
Eelco Dolstra
Browse files
Options
Downloads
Patches
Plain Diff
Inline unpack-channel.sh
parent
8a25d787
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
corepkgs/Makefile.am
+1
-1
1 addition, 1 deletion
corepkgs/Makefile.am
corepkgs/unpack-channel.nix
+16
-3
16 additions, 3 deletions
corepkgs/unpack-channel.nix
corepkgs/unpack-channel.sh
+0
-4
0 additions, 4 deletions
corepkgs/unpack-channel.sh
with
17 additions
and
8 deletions
corepkgs/Makefile.am
+
1
−
1
View file @
afa7e018
all-local
:
config.nix
files
=
nar.nix buildenv.nix buildenv.pl unpack-channel.nix
unpack-channel.sh
derivation.nix fetchurl.nix
\
files
=
nar.nix buildenv.nix buildenv.pl unpack-channel.nix derivation.nix fetchurl.nix
\
imported-drv-to-derivation.nix
install-exec-local
:
...
...
This diff is collapsed.
Click to expand it.
corepkgs/unpack-channel.nix
+
16
−
3
View file @
afa7e018
with
import
<
nix/config.nix
>
;
let
builder
=
builtins
.
toFile
"unpack-channel.sh"
''
mkdir $out
cd $out
${
bzip2
}
-d < $src |
${
tar
}
xf -
mv * $out/$channelName
''
;
in
{
name
,
channelName
,
src
}:
derivation
{
system
=
builtins
.
currentSystem
;
builder
=
shell
;
args
=
[
"-e"
./unpack-channel.sh
];
inherit
name
channelName
src
bzip2
tar
tr
;
args
=
[
"-e"
builder
];
inherit
name
channelName
src
;
PATH
=
"
${
nixBinDir
}
:
${
coreutils
}
"
;
# No point in doing this remotely.
preferLocalBuild
=
true
;
...
...
This diff is collapsed.
Click to expand it.
corepkgs/unpack-channel.sh
deleted
100644 → 0
+
0
−
4
View file @
8a25d787
mkdir
$out
cd
$out
$bzip2
-d
<
$src
|
$tar
xf -
mv
*
$out
/
$channelName
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