Commit 43a8db26 authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #899 from flyingP0tat0/master

Add nix dependencies
parents 7c9f3464 e29fd6b0
require 'package'
class Bdwgc < Package
description 'The Boehm-Demers-Weiser conservative C/C++ Garbage Collecto'
homepage 'https://github.com/ivmai/bdwgc'
version '7.6.0'
source_url 'https://github.com/ivmai/bdwgc/files/1005477/gc-7.6.0.tar.gz'
source_sha256 'a14a28b1129be90e55cd6f71127ffc5594e1091d5d54131528c24cd0c03b7d90'
depends_on 'libatomic_ops'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
\ No newline at end of file
require 'package'
class Libatomic_ops < Package
description 'Atomic memory update operations portable implementation'
homepage 'https://github.com/ivmai/libatomic_ops'
version '7.6.0'
source_url 'https://github.com/ivmai/libatomic_ops/releases/download/v7.6.0/libatomic_ops-7.6.0.tar.gz'
source_sha256 '8e2c06d1d7a05339aae2ddceff7ac54552854c1cbf2bb34c06eca7974476d40f'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
require 'package'
class Libseccomp < Package
description 'The libseccomp library provides an easy to use, platform independent, interface to the Linux Kernel\'s syscall filtering mechanism.'
homepage 'https://github.com/seccomp/libseccomp'
version '2.3.2'
source_url 'https://github.com/seccomp/libseccomp/releases/download/v2.3.2/libseccomp-2.3.2.tar.gz'
source_sha256 '3ddc8c037956c0a5ac19664ece4194743f59e1ccd4adde848f4f0dae7f77bca1'
def self.build
system "./configure"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -8,6 +8,7 @@ class Perl < Package
source_sha256 'e6c185c9b09bdb3f1b13f678999050c639859a7ef39c8cad418448075f5918af'
depends_on 'patch' => :build
depends_on 'curl'
def self.build
# Use system zlib and bzip2
......@@ -19,6 +20,9 @@ class Perl < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "sudo curl -o /usr/local/bin/cpanm https://cpanmin.us"
system "sudo chmod +x /usr/local/bin/cpanm"
system "sudo chown chronos /usr/local/bin/cpanm"
end
def self.check
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment