aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkgs/slang_1/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/slang_1/default.nix b/pkgs/slang_1/default.nix
index 5d68a56..3054b1d 100644
--- a/pkgs/slang_1/default.nix
+++ b/pkgs/slang_1/default.nix
@@ -1,4 +1,4 @@
1{ stdenv, fetchurl }: 1{ stdenv, fetchpatch, fetchurl }:
2stdenv.mkDerivation rec { 2stdenv.mkDerivation rec {
3 name = "slang-debian-patched-${version}"; 3 name = "slang-debian-patched-${version}";
4 version = "1.4.9"; 4 version = "1.4.9";
@@ -6,14 +6,14 @@ 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 debianPatches = fetchurl { 9 patches = [
10 url = "http://archive.debian.org/debian-archive/debian-amd64/pool/main/s/slang/slang_1.4.9dbs-8.diff.gz"; 10 (fetchpatch {
11 sha256 = "0xdq14k5ynqfwpmis1rcggs7m4n921i3bs27icbmbhfg5gb2hap2"; 11 name = "slang_1.4.9dbs-8.diff.gz";
12 }; 12 url = "http://archive.debian.org/debian-archive/debian-amd64/pool/main/s/slang/slang_1.4.9dbs-8.diff.gz";
13 sha256 = "0xdq14k5ynqfwpmis1rcggs7m4n921i3bs27icbmbhfg5gb2hap2";
14 })
15 ];
13 preConfigure = '' 16 preConfigure = ''
14 cp $debianPatches ./slang.diff.gz
15 gunzip slang.diff.gz
16 patch -p1 < slang.diff
17 for i in debian/patches/*; do 17 for i in debian/patches/*; do
18 patch -p1 < $i 18 patch -p1 < $i
19 done 19 done