nixpkgs/pkgs/development/compilers/serpent/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, ... }:
2016-06-04 17:18:08 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "serpent";
2016-06-04 17:18:08 +00:00
# I can't find any version numbers, so we're just using the date
# of the last commit.
version = "2016-03-05";
src = fetchFromGitHub {
owner = "ethereum";
repo = "serpent";
rev = "51ee60857fe53c871fa916ef66fc1b4255bb9433";
sha256 = "1bns9wgn5i1ahj19qx7v1wwdy8ca3q3pigxwznm5nywsw7s7lqxs";
};
2021-03-03 11:56:53 +00:00
postPatch = ''
substituteInPlace Makefile --replace 'g++' '${stdenv.cc.targetPrefix}c++'
'';
2016-06-04 17:18:08 +00:00
installPhase = ''
mkdir -p $out/bin
mv serpent $out/bin
'';
meta = with lib; {
2016-06-04 17:18:08 +00:00
description = "Compiler for the Serpent language for Ethereum";
longDescription = ''
Serpent is one of the high-level programming languages used to
write Ethereum contracts. The language, as suggested by its name,
is designed to be very similar to Python; it is intended to be
maximally clean and simple, combining many of the efficiency
benefits of a low-level language with ease-of-use in programming
style, and at the same time adding special domain-specific
features for contract programming.
'';
homepage = "https://github.com/ethereum/wiki/wiki/Serpent";
2016-06-04 17:18:08 +00:00
license = with licenses; [ wtfpl ];
maintainers = with maintainers; [ ];
2021-03-03 11:56:53 +00:00
platforms = platforms.all;
2016-06-04 17:18:08 +00:00
};
}