mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
--- a/SConstruct
|
|
+++ b/SConstruct
|
|
@@ -94,11 +94,8 @@ def CheckWiX(context):
|
|
return result
|
|
|
|
def get_spd_module_dir():
|
|
- env = Environment()
|
|
- try:
|
|
- return env.ParseConfig("pkg-config speech-dispatcher --variable=modulebindir", passthru)
|
|
- except:
|
|
- return False
|
|
+ # cannot write to ${speechd}/libexec/speech-dispatcher-modules
|
|
+ return os.path.join(os.environ["out"], "libexec/speech-dispatcher-modules")
|
|
|
|
def validate_spd_version(key,val,env):
|
|
m=re.match(r"^\d+\.\d+",val)
|
|
@@ -207,10 +204,10 @@ def create_base_env(user_vars):
|
|
env_args["LIBS"]=[]
|
|
env_args["package_name"]="RHVoice"
|
|
env_args["CPPDEFINES"]=[("RHVOICE","1")]
|
|
- env=Environment(**env_args)
|
|
- if env["dev"]:
|
|
- env["prefix"]=os.path.abspath("local")
|
|
- env["RPATH"]=env.Dir("$libdir").abspath
|
|
+ env=Environment(ENV = os.environ, **env_args)
|
|
+ env.PrependENVPath("PATH", os.environ["PATH"])
|
|
+ env["ENV"]["PKG_CONFIG_PATH"]=os.environ["PKG_CONFIG_PATH"]
|
|
+ env["RPATH"]=env.Dir("$libdir").abspath
|
|
env["package_version"]=get_version(env["release"])
|
|
env.Append(CPPDEFINES=("PACKAGE",env.subst(r'\"$package_name\"')))
|
|
if env["PLATFORM"]=="win32":
|