Skip to content

Commit

Permalink
Merge pull request #66249 from virusdave/dnicponski/scratch/unison_la…
Browse files Browse the repository at this point in the history
…nguage

unison-ucm: init at 1.0.M1c alpha
  • Loading branch information
worldofpeace committed Aug 11, 2019
2 parents 4ff9a48 + 4673896 commit 51816f0
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pkgs/development/compilers/unison/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ stdenv, fetchurl, autoPatchelfHook
, ncurses5, zlib, gmp
}:

stdenv.mkDerivation rec {
pname = "unison-code-manager";
milestone_id = "M1c";
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 = "03q02r7qc7ybqz16kmpk2d8l9vx28kaj9x59mlxzi8a4mr0j3vzb";
}
else
fetchurl {
url = "https://github.com/unisonweb/unison/releases/download/release/${milestone_id}/unison-linux64.tar.gz";
sha256 = "1iwynqnp1i39pyq9wc01x7y22y1qa0rrjlx40jjdgnj23y1r6jk4";
};

# 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 = http://unisonweb.org/posts/;
license = licenses.free;
maintainers = [ maintainers.virusdave ];
platforms = [ "x86_64-darwin" "x86_64-linux" ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20890,6 +20890,8 @@ in

unpaper = callPackage ../tools/graphics/unpaper { };

unison-ucm = callPackage ../development/compilers/unison { };

urh = callPackage ../applications/radio/urh { };

uuagc = haskell.lib.justStaticExecutables haskellPackages.uuagc;
Expand Down

0 comments on commit 51816f0

Please sign in to comment.