nixpkgs/pkgs/development/compilers/unison/default.nix
Brian McKenna 07829a0c92 unison-ucm: 1.0.M1d-alpha -> 1.0.M1e-alpha
* unison-ucm: 1.0.M1d-alpha -> 1.0.M1e-alpha (#72279)

* unison-ucm: refresh meta
homepage and licenses
2019-11-14 00:50:09 +01:00

42 lines
1.3 KiB
Nix

{ stdenv, fetchurl, autoPatchelfHook
, ncurses5, zlib, gmp
}:
stdenv.mkDerivation rec {
pname = "unison-code-manager";
milestone_id = "M1e";
version = "1.0.${milestone_id}-alpha";
src = if (stdenv.isDarwin) then
fetchurl {
url = "https://github.com/unisonweb/unison/releases/download/release/${milestone_id}/unison-osx.tar.gz";
sha256 = "1jcjc8drjnvr67174ym9cppzi5zdq7jrj98xmf8gvrbx45v2gc6h";
}
else
fetchurl {
url = "https://github.com/unisonweb/unison/releases/download/release/${milestone_id}/unison-linux64.tar.gz";
sha256 = "1jq6xx879lqv3hxq8azg1rp72hy63qsn5w9nx95i4dzmmgwp0xx1";
};
# The tarball is just the prebuilt binary, in the archive root.
sourceRoot = ".";
dontBuild = true;
dontConfigure = true;
nativeBuildInputs = stdenv.lib.optional (!stdenv.isDarwin) autoPatchelfHook;
buildInputs = stdenv.lib.optionals (!stdenv.isDarwin) [ ncurses5 zlib gmp ];
installPhase = ''
mkdir -p $out/bin
mv ucm $out/bin
'';
meta = with stdenv.lib; {
description = "Modern, statically-typed purely functional language";
homepage = https://unisonweb.org/;
license = with licenses; [ mit bsd3 ];
maintainers = [ maintainers.virusdave ];
platforms = [ "x86_64-darwin" "x86_64-linux" ];
};
}