
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.
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
From 7ebe252a8488a63675d1c50c0faa1bdc5ff97889 Mon Sep 17 00:00:00 2001
|
|
From: Linus Heckemann <git@sphalerite.org>
|
|
Date: Fri, 5 Jan 2018 21:27:28 +0100
|
|
Subject: [PATCH] Ignore missing data for installation
|
|
|
|
This is for packaging vdrift separately from its data in nixpkgs.
|
|
---
|
|
SConstruct | 3 ---
|
|
1 file changed, 3 deletions(-)
|
|
|
|
diff --git a/SConstruct b/SConstruct
|
|
index 4394de0b..beef29a4 100644
|
|
--- a/SConstruct
|
|
+++ b/SConstruct
|
|
@@ -511,9 +511,6 @@ env.Alias(target = 'bin-package', source = bin_archive)
|
|
#----------------#
|
|
Export(['env', 'version', 'src_dir', 'bin_dir'])
|
|
if 'install' in COMMAND_LINE_TARGETS:
|
|
- if not os.path.isfile('data/SConscript'):
|
|
- raise 'VDrift data not found. Please make sure data is placed in vdrift directory. See README.md and http://wiki.vdrift.net.'
|
|
- SConscript('data/SConscript')
|
|
# desktop appdata installation
|
|
install_desktop = env.Install(env['destdir'] + env['prefix'] + '/share/applications', 'vdrift.desktop')
|
|
install_appdata = env.Install(env['destdir'] + env['prefix'] + '/share/appdata', 'vdrift.appdata.xml')
|
|
--
|
|
2.15.0
|
|
|