2017-03-30 12:15:08 +02:00
|
|
|
args @ { fetchurl, ... }:
|
|
|
|
rec {
|
|
|
|
baseName = ''swap-bytes'';
|
|
|
|
version = ''v1.1'';
|
|
|
|
|
|
|
|
description = ''Optimized byte-swapping primitives.'';
|
|
|
|
|
|
|
|
deps = [ args."trivial-features" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = ''http://beta.quicklisp.org/archive/swap-bytes/2016-09-29/swap-bytes-v1.1.tgz'';
|
|
|
|
sha256 = ''0snwbfplqhg1y4y4m7lgvksg1hs0sygfikz3rlbkfl4gwg8pq8ky'';
|
|
|
|
};
|
2017-06-21 22:15:07 +02:00
|
|
|
|
|
|
|
packageName = "swap-bytes";
|
2017-03-30 22:54:56 +02:00
|
|
|
|
|
|
|
overrides = x: {
|
2017-04-01 08:08:02 +02:00
|
|
|
postInstall = ''
|
|
|
|
find "$out/lib/common-lisp/" -name '*.asd' | grep -iv '/swap-bytes[.]asd${"$"}' |
|
|
|
|
while read f; do
|
2017-04-06 18:43:42 +02:00
|
|
|
env -i \
|
|
|
|
NIX_LISP="$NIX_LISP" \
|
|
|
|
NIX_LISP_PRELAUNCH_HOOK="nix_lisp_run_single_form '(progn
|
|
|
|
(asdf:load-system :$(basename "$f" .asd))
|
|
|
|
(asdf:perform (quote asdf:compile-bundle-op) :$(basename "$f" .asd))
|
|
|
|
(ignore-errors (asdf:perform (quote asdf:deliver-asd-op) :$(basename "$f" .asd)))
|
|
|
|
)'" \
|
2017-04-01 08:08:02 +02:00
|
|
|
"$out"/bin/*-lisp-launcher.sh ||
|
|
|
|
mv "$f"{,.sibling}; done || true
|
|
|
|
'';
|
2017-03-30 22:54:56 +02:00
|
|
|
};
|
2017-03-30 12:15:08 +02:00
|
|
|
}
|
2017-04-01 08:08:02 +02:00
|
|
|
/* (SYSTEM swap-bytes DESCRIPTION Optimized byte-swapping primitives. SHA256 0snwbfplqhg1y4y4m7lgvksg1hs0sygfikz3rlbkfl4gwg8pq8ky URL
|
|
|
|
http://beta.quicklisp.org/archive/swap-bytes/2016-09-29/swap-bytes-v1.1.tgz MD5 dda8b3b0a4e345879e80a3cc398667bb NAME swap-bytes TESTNAME NIL FILENAME
|
2017-06-21 22:15:07 +02:00
|
|
|
swap-bytes DEPS ((NAME trivial-features FILENAME trivial-features)) DEPENDENCIES (trivial-features) VERSION v1.1 SIBLINGS NIL) */
|