Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 38 lines 1.3 kB view raw
1{ stdenv, fetchFromGitHub, ... }: 2 3stdenv.mkDerivation rec { 4 name = "serpent-${version}"; 5 6 # I can't find any version numbers, so we're just using the date 7 # of the last commit. 8 version = "2016-03-05"; 9 10 src = fetchFromGitHub { 11 owner = "ethereum"; 12 repo = "serpent"; 13 rev = "51ee60857fe53c871fa916ef66fc1b4255bb9433"; 14 sha256 = "1bns9wgn5i1ahj19qx7v1wwdy8ca3q3pigxwznm5nywsw7s7lqxs"; 15 }; 16 17 installPhase = '' 18 mkdir -p $out/bin 19 mv serpent $out/bin 20 ''; 21 22 meta = with stdenv.lib; { 23 description = "Compiler for the Serpent language for Ethereum"; 24 longDescription = '' 25 Serpent is one of the high-level programming languages used to 26 write Ethereum contracts. The language, as suggested by its name, 27 is designed to be very similar to Python; it is intended to be 28 maximally clean and simple, combining many of the efficiency 29 benefits of a low-level language with ease-of-use in programming 30 style, and at the same time adding special domain-specific 31 features for contract programming. 32 ''; 33 homepage = https://github.com/ethereum/wiki/wiki/Serpent; 34 license = with licenses; [ wtfpl ]; 35 maintainers = with maintainers; [ chris-martin ]; 36 platforms = with platforms; linux; 37 }; 38}