-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into upgrade-rocksdb
- Loading branch information
Showing
4 changed files
with
28 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,4 @@ | ||
# some basic overlays nessesary for the build | ||
final: super: { | ||
rocksdb = final.callPackage ./rocksdb.nix { }; | ||
|
||
# make-tarball don't follow symbolic links to avoid duplicate file, the bundle should have no external references. | ||
# reset the ownership and permissions to make the extract result more normal. | ||
make-tarball = final.callPackage | ||
({ buildPackages | ||
, runCommand | ||
}: drv: runCommand "tarball-${drv.name}" | ||
{ | ||
nativeBuildInputs = with buildPackages; [ gnutar gzip ]; | ||
} | ||
'' | ||
tar cfv - -C "${drv}" \ | ||
--owner=0 --group=0 --mode=u+rw,uga+r --hard-dereference . \ | ||
| gzip -9 > $out | ||
'' | ||
) | ||
{ }; | ||
} |