mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
linux: use writeShellScript
This commit is contained in:
parent
c48f9c6218
commit
ea29d1b601
@ -1,6 +1,5 @@
|
|||||||
{ lib, buildPackages, runCommand, nettools, bc, bison, flex, perl, rsync, gmp, libmpc, mpfr, openssl
|
{ lib, buildPackages, runCommand, nettools, bc, bison, flex, perl, rsync, gmp, libmpc, mpfr, openssl
|
||||||
, libelf, cpio, elfutils, zstd, python3Minimal, zlib, pahole
|
, libelf, cpio, elfutils, zstd, python3Minimal, zlib, pahole
|
||||||
, writeTextFile
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -61,12 +60,12 @@ let
|
|||||||
++ optional (lib.versionAtLeast version "5.13") zstd;
|
++ optional (lib.versionAtLeast version "5.13") zstd;
|
||||||
|
|
||||||
|
|
||||||
installkernel = writeTextFile { name = "installkernel"; executable=true; text = ''
|
installkernel = buildPackages.writeShellScript "installkernel" ''
|
||||||
#!${stdenv.shell} -e
|
set -e
|
||||||
mkdir -p $4
|
mkdir -p $4
|
||||||
cp -av $2 $4
|
cp -av $2 $4
|
||||||
cp -av $3 $4
|
cp -av $3 $4
|
||||||
''; };
|
'';
|
||||||
|
|
||||||
drvAttrs = config_: kernelConf: kernelPatches: configfile:
|
drvAttrs = config_: kernelConf: kernelPatches: configfile:
|
||||||
let
|
let
|
||||||
|
Loading…
Reference in New Issue
Block a user