3
0
Fork 0
forked from mirrors/nixpkgs

pcmciaUtils: move defaults to package file

This commit is contained in:
Jan Malakhovski 2019-02-03 15:32:20 +00:00
parent 7562d78023
commit 40cde4d5d7
2 changed files with 7 additions and 11 deletions

View file

@ -1,10 +1,9 @@
{ stdenv, fetchurl
{ config, lib, stdenv, fetchurl
, yacc, flex
, sysfsutils, kmod, udev
, firmware # Special pcmcia cards.
, config # Special hardware (map memory & port & irq)
, lib # used to generate postInstall script.
}:
, firmware ? config.pcmciaUtils.firmware or [] # Special pcmcia cards.
, configOpts ? config.pcmciaUtils.config or null # Special hardware (map memory & port & irq)
}: # used to generate postInstall script.
# FIXME: should add an option to choose between hotplug and udev.
stdenv.mkDerivation rec {
@ -28,8 +27,8 @@ stdenv.mkDerivation rec {
" src/{startup.c,pcmcia-check-broken-cis.c} # fix-color */
''
+ (if firmware == [] then ''sed -i "s,STARTUP = true,STARTUP = false," Makefile'' else "")
+ (if config == null then "" else ''
ln -sf ${config} ./config/config.opts'')
+ (if configOpts == null then "" else ''
ln -sf ${configOpts} ./config/config.opts'')
;
makeFlags = "LEX=flex";

View file

@ -14992,10 +14992,7 @@ in
pax-utils = callPackage ../os-specific/linux/pax-utils { };
pcmciaUtils = callPackage ../os-specific/linux/pcmciautils {
firmware = config.pcmciaUtils.firmware or [];
config = config.pcmciaUtils.config or null;
};
pcmciaUtils = callPackage ../os-specific/linux/pcmciautils { };
pcstat = callPackage ../tools/system/pcstat { };