mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
7c66fb1ec5
They said they haven't used Nix in a while and is not interested in maintaining cemu-ti (presumably other packages too), so I asked to take over his role. I removed luc65r from the meta.maintainers attribtes, and adopted the packages I wanted to adopt. I chose to adopt the TI graphing calculator-related packages as I am part of Cemetech.
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, bison
|
|
, binutils
|
|
, makeWrapper
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "myrddin";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "mc";
|
|
owner = "oridb";
|
|
rev = "r${version}";
|
|
sha256 = "7ImjiG/rIKGPHq3Vh/mftY7pqw/vfOxD3LJeT87HmCk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
bison
|
|
pkg-config
|
|
makeWrapper
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace mk/c.mk \
|
|
--replace "-Werror" ""
|
|
'';
|
|
|
|
buildPhase = ''
|
|
make bootstrap -j$NIX_BUILD_CORES
|
|
make -j$NIX_BUILD_CORES
|
|
'';
|
|
|
|
postInstall = ''
|
|
for b in $out/bin/*; do
|
|
wrapProgram $b --prefix PATH : $out/bin:${lib.makeBinPath [ binutils ]}
|
|
done
|
|
'';
|
|
|
|
checkPhase = ''
|
|
make check
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Systems language that is both powerful and fun to use";
|
|
homepage = "https://myrlang.org/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.all;
|
|
# darwin: never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/myrddin.x86_64-darwin
|
|
broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || stdenv.hostPlatform.isDarwin;
|
|
};
|
|
}
|