aboutsummaryrefslogtreecommitdiff
path: root/pkgs/slang_1
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-26 16:22:31 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-04-26 16:22:31 +0200
commitd06db97c6da83523f36222049d8fab982d1e9e59 (patch)
treeaf77f7baf8003eb3ab899811d155a1582889ff32 /pkgs/slang_1
parentdff8b5932bd45c9b3c21209e076b0c0d140bc2f5 (diff)
downloadNix-d06db97c6da83523f36222049d8fab982d1e9e59.tar.gz
Nix-d06db97c6da83523f36222049d8fab982d1e9e59.tar.zst
Nix-d06db97c6da83523f36222049d8fab982d1e9e59.zip
Refactor slang build
Diffstat (limited to 'pkgs/slang_1')
-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