git.iko.soy/typeable/nixpkgs
on master help sign in
copper: init at 4.4
commitbf9df7451173f18ecd9b205f379b260b938d8f2c authorJorge Acereda <jacereda@gmail.com> dateThu 21 May 2020, 23:03 (6 years ago) parentc557ea5
2 files changed+35−1
pkgs/development/compilers/copper/default.nix+32 pkgs/top-level/all-packages.nix+3−1
pkgs/development/compilers/copper/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv
2+, fetchurl
3+, libffi
4+}:
5+stdenv.mkDerivation rec {
6+ pname = "copper";
7+ version = "4.4";
8+ src = fetchurl {
9+ url = "https://tibleiz.net/download/copper-${version}-src.tar.gz";
10+ sha256 = "1nf0bw143rjhd019yms3k6k531rahl8anidwh6bif0gm7cngfwfw";
11+ };
12+ buildInputs = [
13+ libffi
14+ ];
15+ postPatch = ''
16+ substituteInPlace Makefile --replace "-s scripts/" "scripts/"
17+ patchShebangs .
18+ '';
19+ buildPhase = ''
20+ make BACKEND=elf64 boot-elf64
21+ make BACKEND=elf64 COPPER=stage3/copper-elf64 copper-elf64
22+ '';
23+ installPhase = ''
24+ make BACKEND=elf64 install prefix=$out
25+ '';
26+ meta = with stdenv.lib; {
27+ description = "Simple imperative language, statically typed with type inference and genericity.";
28+ homepage = "https://tibleiz.net/copper/";
29+ license = licenses.bsd2;
30+ platforms = platforms.x86_64;
31+ };
32+}
pkgs/top-level/all-packages.nix+3−1
@@ -3984,7 +3984,7 @@ in
39843984 gocryptfs = callPackage ../tools/filesystems/gocryptfs { };
39853985
39863986 godot = callPackage ../development/tools/godot {};
3987−
3987+
39883988 godot-headless = callPackage ../development/tools/godot/headless.nix { };
39893989
39903990 godot-server = callPackage ../development/tools/godot/server.nix { };
@@ -8470,6 +8470,8 @@ in
84708470 '';
84718471 };
84728472
8473+ copper = callPackage ../development/compilers/copper {};
8474+
84738475 inherit (callPackages ../development/compilers/crystal {
84748476 inherit (llvmPackages_10) stdenv clang llvm;
84758477 })