-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lief to shrinkwrap and remove patchelf (#2)
* Add nixpkgs-fmt * All flake checks passing now * Add pull request CI workflow * Added lief instead of patchelf * Removed coreutils * Changed copyfile -> copy to preserve execute * Added a script to push to cachix * Removed patchelf
- Loading branch information
Showing
13 changed files
with
131 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
*/__pycache__ | ||
result | ||
ruby_stamped |
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,18 +1,13 @@ | ||
{ stdenv, lib, poetry2nix, python39, patchelf, coreutils, poetryOverrides | ||
, writeScriptBin, makeWrapper }: | ||
let | ||
app = poetry2nix.mkPoetryApplication { | ||
projectDir = ./.; | ||
python = python39; | ||
buildInputs = [ patchelf ]; | ||
overrides = [ poetry2nix.defaultPoetryOverrides poetryOverrides ]; | ||
}; | ||
in stdenv.mkDerivation { | ||
name = "shrinkwrap"; | ||
buildInputs = [ makeWrapper ]; | ||
phases = [ "installPhase" ]; | ||
installPhase = '' | ||
mkdir $out | ||
makeWrapper ${app}/bin/shrinkwrap $out/bin/shrinkwrap --prefix PATH : ${lib.makeBinPath [coreutils patchelf]} | ||
''; | ||
{ stdenv | ||
, lib | ||
, poetry2nix | ||
, python39 | ||
, poetryOverrides | ||
, writeScriptBin | ||
, makeWrapper | ||
}: | ||
poetry2nix.mkPoetryApplication { | ||
projectDir = ./.; | ||
python = python39; | ||
overrides = [ poetry2nix.defaultPoetryOverrides poetryOverrides ]; | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
nix-store -qR \ | ||
--include-outputs \ | ||
$(nix-store -qd $(nix build --json | jq -r '.[].outputs | to_entries[].value')) \ | ||
| grep '\.drv$' \ | ||
| cachix push fzakaria |
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
Empty file.
Oops, something went wrong.