diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-10-24 12:42:50 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-10-24 12:42:50 +0200 |
commit | 8fd0df08c4487e440f0f5884f193a96057abad43 (patch) | |
tree | 84625526567d23b39770a68669fb08a9f3a1ab51 /pkgs | |
parent | 969d8daf01f8ece463b7a8d842e348e9a1f4e17d (diff) | |
download | Nix-8fd0df08c4487e440f0f5884f193a96057abad43.tar.gz Nix-8fd0df08c4487e440f0f5884f193a96057abad43.tar.zst Nix-8fd0df08c4487e440f0f5884f193a96057abad43.zip |
Repackage slang correctly
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/slang_1/default.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/slang_1/default.nix b/pkgs/slang_1/default.nix index b3842f7..cd626e0 100644 --- a/pkgs/slang_1/default.nix +++ b/pkgs/slang_1/default.nix | |||
@@ -6,16 +6,17 @@ stdenv.mkDerivation rec { | |||
6 | url = "ftp://space.mit.edu/pub/davis/slang/v1.4/slang-1.4.9.tar.gz"; | 6 | url = "ftp://space.mit.edu/pub/davis/slang/v1.4/slang-1.4.9.tar.gz"; |
7 | sha256 = "1y2mg0whqh4b3acd0k17i4biz55bimxg8aaxhmwd165cvspxns9r"; | 7 | sha256 = "1y2mg0whqh4b3acd0k17i4biz55bimxg8aaxhmwd165cvspxns9r"; |
8 | }; | 8 | }; |
9 | patches = [ | 9 | debian_patches = fetchurl { |
10 | (fetchpatch { | 10 | url = "http://archive.debian.org/debian-archive/debian-amd64/pool/main/s/slang/slang_1.4.9dbs-8.diff.gz"; |
11 | url = "http://archive.debian.org/debian-archive/debian-amd64/pool/main/s/slang/slang_1.4.9dbs-8.diff.gz"; | 11 | sha256 = "0xdq14k5ynqfwpmis1rcggs7m4n921i3bs27icbmbhfg5gb2hap2"; |
12 | sha256 = "0xdq14k5ynqfwpmis1rcggs7m4n921i3bs27icbmbhfg5gb2hap2"; | 12 | }; |
13 | }) | 13 | patchPhase = '' |
14 | ]; | 14 | gunzip -c ${debian_patches} | patch -p1 |
15 | preConfigure = '' | ||
16 | for i in debian/patches/*; do | 15 | for i in debian/patches/*; do |
17 | patch -p1 < $i | 16 | patch -p1 < $i |
18 | done | 17 | done |
18 | ''; | ||
19 | preConfigure = '' | ||
19 | makeFlagsArray=(CFLAGS=" -g -O2 -fno-strength-reduce -DUTF8 -D_REENTRANT -D_XOPEN_SOURCE=500") | 20 | makeFlagsArray=(CFLAGS=" -g -O2 -fno-strength-reduce -DUTF8 -D_REENTRANT -D_XOPEN_SOURCE=500") |
20 | ''; | 21 | ''; |
21 | postBuild = '' | 22 | postBuild = '' |