Compare commits

...

2 commits

Author SHA1 Message Date
Sebastian Wendel 103977d30a upgraded nix dependencies
Some checks reported warnings
build / check (push) Has been cancelled
build / build (push) Has been cancelled
2023-10-03 16:24:46 +02:00
Sebastian Wendel 760fb7811f return to the original packaging format without FHS 2023-10-03 16:16:10 +02:00
2 changed files with 34 additions and 14 deletions

View file

@ -3,11 +3,11 @@
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"lastModified": 1696267196,
"narHash": "sha256-AAQ/2sD+0D18bb8hKuEEVpHUYD1GmO2Uh/taFamn6XQ=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"rev": "4f910c9827911b1ec2bf26b5a062cd09f8d89f85",
"type": "github"
},
"original": {
@ -37,11 +37,11 @@
"systems": "systems"
},
"locked": {
"lastModified": 1692799911,
"narHash": "sha256-3eihraek4qL744EvQXsK1Ha6C3CR7nnT8X2qWap4RNk=",
"lastModified": 1694529238,
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "f9e7cf818399d17d347f847525c5a5a8032e4e44",
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"type": "github"
},
"original": {
@ -73,11 +73,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1694183432,
"narHash": "sha256-YyPGNapgZNNj51ylQMw9lAgvxtM2ai1HZVUu3GS8Fng=",
"lastModified": 1696019113,
"narHash": "sha256-X3+DKYWJm93DRSdC5M6K5hLqzSya9BjibtBsuARoPco=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "db9208ab987cdeeedf78ad9b4cf3c55f5ebd269b",
"rev": "f5892ddac112a1e9b3612c39af1b72987ee5783a",
"type": "github"
},
"original": {
@ -116,11 +116,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1694364351,
"narHash": "sha256-oadhSCqopYXxURwIA6/Anpe5IAG11q2LhvTJNP5zE6o=",
"lastModified": 1696158581,
"narHash": "sha256-h0vY4E7Lx95lpYQbG2w4QH4yG5wCYOvPJzK93wVQbT0=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "4f883a76282bc28eb952570afc3d8a1bf6f481d7",
"rev": "033453f85064ccac434dfd957f95d8457901ecd6",
"type": "github"
},
"original": {

View file

@ -91,6 +91,14 @@ in
patchPhase = ''
patchShebangs .
substituteInPlace cmake/zephyr/host-tools.cmake \
--replace "/usr/share" "/share" \
--replace "/sysroots/\*-pokysdk-linux" ""
sed '/SYSROOT_DIR/d' cmake/zephyr/target.cmake
sed '/CROSS_COMPILE/d' cmake/zephyr/target.cmake
'';
dontConfigure = true;
@ -99,8 +107,20 @@ in
installPhase = ''
runHook preInstall
mkdir -p $out
mv * $out
mkdir -p $out/{share,lib}
find ./sysroots/$(uname -m)-pokysdk-linux/usr/bin -type l -exec unlink {} \;
mv ./sysroots/$(uname -m)-pokysdk-linux/usr/{bin,libexec,share} $out/
mv ./sysroots/$(uname -m)-pokysdk-linux/usr/synopsys/bin/qemu-system-* $out/bin/
mv ./sysroots/$(uname -m)-pokysdk-linux/usr/xilinx/bin/qemu-system-aarch64 \
$out/bin/qemu-system-xilinx-aarch64
mv ./sysroots/$(uname -m)-pokysdk-linux/usr/xilinx/bin/qemu-system-microblazeel \
$out/bin/qemu-system-xilinx-microblazeel
mv ./cmake $out
mv ./*zephyr* $out
mv ./sdk_* $out
runHook postInstall
'';