mirror of
https://github.com/Savapitech/42sh.git
synced 2026-01-18 16:57:28 +01:00
28 lines
538 B
Nix
28 lines
538 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
withDevBinaries ? false,
|
|
}:
|
|
stdenv.mkDerivation {
|
|
name = "42sh";
|
|
version = "dev";
|
|
|
|
src = ./.;
|
|
enableParallelBuilding = true;
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}"]
|
|
++ (lib.optional withDevBinaries ["debug" "check"]);
|
|
|
|
postInstall = lib.optional withDevBinaries ''
|
|
install -Dm755 -t $out/bin debug
|
|
'';
|
|
|
|
meta = {
|
|
description = "Epitech 42sh";
|
|
license = [ ];
|
|
mainProgram = "42sh";
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ savalet ];
|
|
};
|
|
}
|